Checkout
The purchase saga (checkout).
Open a checkout session for the cart
Relays checkout POST /checkout-sessions. The cart (default: the cookie's) and the shopper (the cookie's, required) are filled in; the saved address is only a shipToAddressId. Stores the session id in the sf_state cookie.
Get a checkout session
Relays checkout GET /checkout-sessions/{sessionId}. The page polls it while a placement is in doubt (202 from confirmations).
Confirm the session with a payment method token
Relays checkout POST /checkout-sessions/{sessionId}/confirmations with the PSP token (never a card number: card-shaped fields and a token that is a card number are refused with 422 before any upstream call). Uses the long confirm budget. 200 carries a definitive session, 202 an in-doubt placement to poll.