Confirm a checkout session using a Stripe confirmation token.
import { CheckoutConfirmStripe } from "@polar-sh/sdk/models/components/checkoutconfirmstripe.js";
let value: CheckoutConfirmStripe = {
customerBillingAddress: {
country: "SE",
},
};
Field | Type | Required | Description |
---|---|---|---|
customFieldData |
Record<string, components.CheckoutConfirmStripeCustomFieldData> | ➖ | Key-value object storing custom field values. |
productId |
string | ➖ | ID of the product to checkout. Must be present in the checkout's product list. |
productPriceId |
string | ➖ | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. ID of the product price to checkout. Must correspond to a price present in the checkout's product list. |
amount |
number | ➖ | N/A |
customerName |
string | ➖ | N/A |
customerEmail |
string | ➖ | N/A |
customerBillingAddress |
components.Address | ➖ | N/A |
customerTaxId |
string | ➖ | N/A |
discountCode |
string | ➖ | Discount code to apply to the checkout. |
confirmationTokenId |
string | ➖ | ID of the Stripe confirmation token. Required for fixed prices and custom prices. |