Creating a session
quantities, and a quantity of 0 leaves the item out.
mode has two values: subscription for a contract and payment for a one-off purchase. If a customer should only store a payment method without buying anything, use the payment link.
The access to the page
The address inurl carries the access to the cart behind the hash:
X-Checkout-Client-Secret header.
If you open the page from your own application in a new tab, you can append the value as ?client_secret= when reading the session (GET /public/checkout/sessions/{id}) instead.
A cart from a checkout link has no such access and is read without one, because the link itself is the offer.
The page

Summary on the left, form on the right.

A completed form with the bank recognized from the IBAN.

The checkout on a phone.
VAT before the address is known
The cart is fully priced from the first second, even when nobody has said where the buyer sits. The country from your company data stands in for it, and the result is marked as estimated. The customer therefore never sees a total without tax and never experiences a jump while filling in the address that nobody explains. Which country applies is decided by the first step of this order that yields something:?countryCode=or?vatId=when reading the cart- the billing address on the cart
- the country picked through
PUT .../change-country-code - the country of a customer already known
- the country of the VAT id given, when there is no address
- the country from your company data
The tax country is only final from the billing address
The order above decides which figure the page shows. It does not decide which figure may be charged. A country is final only when somebody recorded it: the billing address on the cart, or the customer already known. Everything else, including a country the buyer types into the query themselves, stays an estimate.prepare-stripe does not read ?countryCode= or ?vatId=. The amount comes from the cart. What the buyer enters in the address step therefore has to land on the cart, not only on the payment preparation.
The estimate is a display aid and is never charged. What is charged is always the tax belonging to the address on the invoice.
Delivery address
If you have enabled delivery addresses, the checkout also asks for a Delivery address, and a known customer picks from their stored addresses. A delivery address can equally be the place where a service is rendered, so it does not presuppose physical goods.Existing customers
If the customer enters an email address you already know, Fynn sends them a confirmation code. After entering it, their stored payment methods appear with the default preselected, and the address fields are dropped.
A known customer: stored payment methods instead of a form.
B2B direct debit: sign first, then order
When a customer confirms the checkout with a SEPA B2B direct debit, no live order is created yet. The confirmation answers with anextAction of type sign_mandate and the address of the signing page, and the cart sits in awaiting_mandate. Nothing is activated and nothing is collected. Signing happens on your page, under your brand.
Until the signature is in, there is a mandate but not yet a payment method. The answer to the confirmation therefore names the id of the mandate and its stage, not that of a payment method.
After the purchase

The confirmation after the purchase.
successUrl. On the server the customer, the payment method and the order are created. As soon as the subscription exists, the session carries its id.
Once the session is complete it also carries its outcome in result: order number, items, the totals of net, tax and gross, the payment method chosen, the customer’s email address and the address of their portal. That is enough to build your own thank-you page without further calls. Before completion result is empty.
result.nextStep names what the customer can expect next:
For your own processes, rely on the event rather than on the browser coming back. A customer closes a tab, a network drops, a webhook does not.
Discarding the cart
A customer who changes their mind picks Discard basket. The action is on the page when it was opened through the address from the session, because only then does the page hold the access for it. The session is expired afterwards and the page shows its expired state. You can end a session just as well, for instance when the customer abandons in your application:
An expired session.