Checkout Session Object
A checkout session represents a temporary payment intent created when you redirect customers to Galeβs hosted checkout page. When the customer completes payment, the session converts to an Order.All monetary amounts are integers in cents (e.g., 4995 = $49.95).
The Checkout Session Object
Attributes
Line Item Attributes
Checkout Session Status
Checkout Type
Gale automatically determines the type based on product eligibility:Lifecycle
paid:
- An Order is created
order_idfield is populatedorder.createdwebhook fires- Customer redirects to
success_url
Tracking Checkout Status
Amounts Object
Gale automatically calculates how much can be paid with HSA/FSA vs regular payment methods based on product eligibility.
Subscription Sessions
For subscription checkouts, include subscription details:Subscription checkout is currently in Beta.
Webhooks
Checkout sessions trigger these webhooks:order.createdβ Payment succeeded, order created (this is what you should listen to)order.failedβ Payment failed
order.created to confirm payment.
Best Practices
Donβt poll for status β Use webhooks instead:Related Endpoints
- Create Checkout Session β POST /api/v2/checkout
- Get Checkout Session β GET /api/v2/checkout/
- List Orders β GET /api/v2/orders
Related Objects
- Order Object β Permanent payment record
- Product Object β Items being purchased
- Subscription Object β For recurring payments
