Introduction
This tutorial shows how to create a server-side checkout session and redirect customers to the hosted session to complete payment.Steps
- Ensure you have a signed-in session token.
- Create a
POST /checkout/sessionsrequest withmerchantId,customerId,lineItems, andcurrency. - Read the
sessionUrlfrom the response and redirect your customer to that URL.
Onboard a Merchant tutorial for a complete flow that includes checkout session creation.