Checkout API
The Checkout API allows you to create hosted payment pages for your customers.
Creating a Checkout
Create a checkout session with items and redirect URLs:
Checkout Parameters
Required Parameters
Optional Parameters
Checkout Items
Each item in the checkout:
Complete Example
Retrieving a Checkout
Get checkout details:
Canceling a Checkout
Cancel an active checkout:
Checkout Response
Client Secret
When creating a checkout with a secretKey, the response includes a client_secret field. This is a checkout-scoped JWT that should be passed to the frontend along with the checkoutId for browser-side authentication.
Next Steps
- Webhooks - Handle checkout events
- Payment Methods - Configure payment methods