Create a customer
Before creating a Checkout Session, you need to create a customer. You can create a customer using the Customers APIAPI
.
Create a customer
Customer object
Create a Checkout Session
To create a Checkout SessionAPI
, you need to specify the currency
, customer
, description
, and subscription_data
.
Create a Checkout Session
url
parameter.
Checkout Session object
Share the Checkout Session URL
After creating a Checkout Session, you will receive a Checkout Session URL. Share this link with your customers so they can subscribe using their preferred payment method.Handle the Checkout Session completion
When your customers complete the checkout process, you will receive a webhook event. You can use the Webhooks APIAPI
to handle the event.