Before you start
Create a product and prepare your success and cancel URLs. If your integration uses the API, your server creates a checkout session and redirects the customer to the returned checkout URL.API checkout flow
- Your server creates a checkout session.
- Kyren returns a hosted checkout URL.
- Your frontend redirects the customer to that URL.
- The customer completes payment.
- Kyren sends a Webhook event to your server.
- Your system fulfills the order after confirming payment success.
Common mistakes
- Creating checkout sessions from browser JavaScript with an API key.
- Fulfilling the order before a paid status or payment-success Webhook.
- Not storing your internal user or order ID in metadata when you need reconciliation.