Create Checkout Session
Checkout & Credits
Create Checkout Session
POST
Create Checkout Session
Create a Stripe Checkout session for a customer to subscribe to a plan. Returns a
client_secret that you pass to Stripe’s embedded checkout component.
Auth: pk_ (publishable key) or sk_ (secret key).
External customer ID. The customer must already exist.
The plan code to subscribe the customer to (e.g.
pro).URL to redirect the customer to after successful checkout. Defaults to your configured redirect URL.
Response
Stripe Checkout Session client secret. Pass this to
stripe.initEmbeddedCheckout().The Lago invoice ID associated with this checkout.
Total amount in cents.
ISO 4217 currency code.