CheckoutResult
Fields
purchasePurchaseThe order. Present on success — completed already for a free or fully credit-funded checkout, pending when a payment still has to be confirmed.
checkoutSessionCheckoutSessionPresent when money is owed: mount Stripe Elements against clientSecret, then call completeCheckout. Null when the order needed no payment.
refusalCheckoutRefusalWhy 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.
placesLeftIntOn 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!]!