Skip to content

CheckoutResult

Fields

purchasePurchase

The order. Present on success — completed already for a free or fully credit-funded checkout, pending when a payment still has to be confirmed.

checkoutSessionCheckoutSession

Present when money is owed: mount Stripe Elements against clientSecret, then call completeCheckout. Null when the order needed no payment.

Why no order was minted, when the reason is one a client acts on rather than only shows. Null on success and for every other refusal, which errors alone describes. Nothing is charged on a refused checkout.

placesLeftInt

On a notEnoughPlaces refusal, the most places the buyer could have instead — 0 when none are left — at the first session in the basket that cannot take its line. Null otherwise.

errors[OperationError!]!

Used in