Guide
Checkout
Use a hosted checkout flow for speed and simplicity.
GuidePaymentsPOSTServer key
Method
POST
Endpoint
/v1/checkout/sessions
Notes
Hosted flow
Hosted checkout
Flexible payment flow
Clear success path
Quick steps
- 1Choose the payment product that matches your integration style.
- 2Create the payment object and pass the right line items or amount.
- 3Handle confirmation, success, and error states in your app.
Related pages
No related pages yet.
Checkout flow
Checkout handles the UI and payment confirmation so you can ship faster.
Example
await kopo.checkout.create({
mode: 'payment',
line_items: [{ price: 'price_123', quantity: 1 }],
});Previous
Overview
A quick tour of the payment products.
Next
Payment Intents
Use the core payment API for flexible payment handling.