Custom Checkout with ElementsPrivate preview
Learn how to use Elements with Custom Checkout to build a checkout page.
Private preview
The Custom Checkout integration is in private preview. To request access, click here.
Use Custom Checkout to create customizable checkout forms. This integration combines the functionality of the CheckoutSessions API with the control and customization provided by Elements.
Get started
Learn how to build a checkout page with Custom Checkout.
- Get started with Custom Checkout
- Collect customer details
- Collect payment details with the Payment Element
- Build a pay button to complete checkout
- Perform fulfillment after a customer pays
Comparing with the Payment Intents API
Use the Checkout Sessions or Payment Intents API to accept various types of payments. You can integrate either API into Stripe’s prebuilt payment platforms. Depending on your checkout flow and the level of control you require, these APIs support different use cases:
- The Checkout Sessions API allows you to model your customer’s checkout process. This includes the line items in their purchase, billing or shipping addresses, applicable tax rates, and coupons or discounts. The CheckoutSession manages creating subscriptions, calculating tax rates with Stripe Tax, or initiating payments.
- The Payment Intents API is a lower-level API that only focuses on modeling the payments step. Unlike the Checkout Sessions API, which requires line item details, you only pass in the final amount you want to charge. To use Stripe to calculate applicable taxes or create subscriptions, you need to integrate with the Stripe Tax API or Subscriptions API.
Comparing the Checkout Sessions and Payment Intents APIs
Because the Checkout Sessions API uses line_items, it integrates natively with other Stripe products such as Stripe Tax and Stripe Billing. However, you can also integrate with these products using the Payment Intents API in combination with other standalone Stripe APIs.