Skip to main content
Use Checkout Sessions for hosted checkout flows.

Endpoint

API Reference

Full request and response schema.

Checkout Sessions Guide

End-to-end integration walkthrough.

Request example

Response example


Flow

1

Create session

Create the session with products, customer context, and redirect URLs.
2

Redirect customer

Redirect to checkout_url.
3

Handle completion

Process webhook events. Recover missed events with a scheduled sweep, not by checking each charge on a timer.
Always treat webhooks as source of truth for final payment outcomes.