Build a checkout pageBeta
Learn how to use Elements and Custom Checkout to build a checkout page.
Private Vorschau
The Custom Checkout integration is in private preview. To request access, click here.
You can build a custom checkout page on your website using Stripe Elements and Custom Checkout, a front-end SDK that manages tax, discounts, shipping rates, and so on.
Set up the serverServer-side
Before you begin, you need to register for a Stripe account.
Use the official Stripe libraries to access the API from your application.
Set the SDK to use the custom_
beta version header.
Initialize a Checkout SessionServer-side
Add an endpoint on your server that creates a Checkout Session object and returns its client secret to your front-end.
A Checkout Session represents your customer’s session as they pay for one-time purchases or subscriptions. Checkout Sessions expire 24 hours after creation.
For more details about creation parameters, see create a Checkout Session.