The checkout URL is single-use and expires after a short period. If a customer abandons checkout and returns to your storefront, generate a new checkout session rather than reusing the old URL.
Create checkout session
Creates a Stripe checkout session for the specified cart and returns a redirect URL.Body parameters
string
required
The ID of the cart to check out. The cart must belong to the same store as the API key.
Request
Response
string
required
A Stripe-hosted checkout URL. Redirect the customer’s browser to this URL to complete payment. The URL is single-use and expires after a short period.