Create a Checkout Session ​
Creates a Checkout Session object.
Returns ​
Returns a Checkout Session object.
Parameters ​
adaptive_pricing(object, optional) Settings for price localization with Adaptive Pricing.adaptive_pricing.enabled(boolean, optional) If set totrue, Adaptive Pricing is available on eligible sessions. Defaults to your dashboard setting.
after_expiration(object, optional) Configure actions after a Checkout Session has expired. You can’t set this parameter ifui_modeiselements.after_expiration.recovery(object, optional) Configure a Checkout Session that can be used to recover an expired session.after_expiration.recovery.enabled(boolean, required) Iftrue, a recovery URL will be generated to recover this Checkout Session if it expires before a successful transaction is completed. It will be attached to the Checkout Session object upon expiration.after_expiration.recovery.allow_promotion_codes(boolean, optional) Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults tofalse
allow_promotion_codes(boolean, optional) Enables user redeemable promotion codes.automatic_tax(object, optional) Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.automatic_tax.enabled(boolean, required) Set totrueto calculate tax automatically using the customer’s location.Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
automatic_tax.liability(object, optional) The account that’s liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.automatic_tax.liability.type(enum, required) Type of the account referenced in the request. Possible enum values:accountIndicates that the account being referenced is a connected account which is different from the account making the API request but related to it.selfIndicates that the account being referenced is the account making the API request.
automatic_tax.liability.account(string, required only if type is account) The connected account being referenced whentypeisaccount.
billing_address_collection(enum, optional) Specify whether Checkout should collect the customer’s billing address. Defaults toauto. Possible enum values:autoCheckout will only collect the billing address when necessary. When using automatic_tax, Checkout will collect the minimum number of fields required for tax calculation.requiredCheckout will always collect the customer’s billing address.
branding_settings(object, optional) The branding settings for the Checkout Session. This parameter is not allowed if ui_mode iselements.branding_settings.background_color(string, optional) A hex color value starting with#representing the background color for the Checkout Session.branding_settings.border_style(enum, optional) The border style for the Checkout Session. Possible enum values:pillUses pill-shaped corners on the Checkout Session.rectangularUses rectangular corners on the Checkout Session.roundedUses rounded corners on the Checkout Session.
branding_settings.button_color(string, optional) A hex color value starting with#representing the button color for the Checkout Session.branding_settings.display_name(string, optional) A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.branding_settings.font_family(enum, optional) The font family for the Checkout Session corresponding to one of the supported font families. Possible enum values:be_vietnam_proTheBe Vietnam Profont family.bitterTheBitterfont family.chakra_petchTheChakra Petchfont family.defaultThedefaultfont family.hahmletTheHahmletfont family.inconsolataTheInconsolatafont family.interTheInterfont family.latoTheLatofont family.loraTheLorafont family.m_plus_1_codeTheM PLUS 1 Codefont family.montserratTheMontserratfont family.noto_sansTheNoto Sansfont family.noto_sans_jpTheNoto Sans JPfont family.noto_serifTheNoto Seriffont family.nunitoTheNunitofont family.open_sansTheOpen Sansfont family.pridiThePridifont family.pt_sansThePT Sansfont family.pt_serifThePT Seriffont family.ralewayTheRalewayfont family.robotoTheRobotofont family.roboto_slabTheRoboto Slabfont family.source_sans_proTheSource Sans Profont family.titillium_webTheTitillium Webfont family.ubuntu_monoTheUbuntu Monofont family.zen_maru_gothicTheZen Maru Gothicfont family.
branding_settings.icon(object, optional) The icon for the Checkout Session. For best results, use a square image.branding_settings.icon.type(enum, required) The type of image for the icon. Must be one offileorurl.branding_settings.icon.file(string, optional) The ID of a File upload representing the icon. Purpose must bebusiness_icon. Required iftypeisfileand disallowed otherwise.branding_settings.icon.url(string, optional) The URL of the image. Required iftypeisurland disallowed otherwise.
branding_settings.logo(object, optional) The logo for the Checkout Session.branding_settings.logo.type(enum, required) The type of image for the logo. Must be one offileorurl.branding_settings.logo.file(string, optional) The ID of a File upload representing the logo. Purpose must bebusiness_logo. Required iftypeisfileand disallowed otherwise.branding_settings.logo.url(string, optional) The URL of the image. Required iftypeisurland disallowed otherwise.
cancel_url(string, optional) If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode isembedded_pageorelements.client_reference_id(string, optional) A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the session with your internal systems.The maximum length is 200 characters.
consent_collection(object, optional) Configure fields for the Checkout Session to gather active consent from customers.consent_collection.payment_method_reuse_agreement(object, optional) Determines the display of payment method reuse agreement text in the UI. If set tohidden, it will hide legal text related to the reuse of a payment method.consent_collection.payment_method_reuse_agreement.position(enum, required) Determines the position and visibility of the payment method reuse agreement in the UI. When set toauto, Stripe’s defaults will be used. When set tohidden, the payment method reuse agreement text will always be hidden in the UI. Possible enum values:autoUses Stripe defaults to determine the visibility and position of the payment method reuse agreement.hiddenHides the payment method reuse agreement.
consent_collection.promotions(enum, optional) If set toauto, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication from the merchant depending on the customer’s locale. Only available to US merchants. Possible enum values:autoEnable the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication from the merchant depending on if a customer is provided, and if that customer has consented to receiving promotional communications from the merchant in the past.noneCheckout will not collect customer consent for promotional communications.
consent_collection.terms_of_service(enum, optional) If set torequired, it requires customers to check a terms of service checkbox before being able to pay. There must be a valid terms of service URL set in your Dashboard settings. Possible enum values:noneDoes not display checkbox for the terms of service agreement.requiredDisplays a checkbox for the terms of service agreement which requires customer to check before being able to pay.
currency(enum, required conditionally) Three-letter ISO currency code, in lowercase. Must be a supported currency. Required insetupmode whenpayment_method_typesis not set.custom_fields(array of objects, optional) Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can’t set this parameter ifui_modeiscustom.custom_fields.key(string, required) String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.The maximum length is 200 characters.
custom_fields.label(object, required) The label for the field, displayed to the customer.custom_fields.label.custom(string, required) Custom text for the label, displayed to the customer. Up to 50 characters.The maximum length is 50 characters.
custom_fields.label.type(enum, required) The type of the label. Possible enum values:customSet a custom label for the field.
custom_fields.type(enum, required) The type of the field. Possible enum values:dropdownProvide a list of options for your customer to select.numericCollect a numbers-only field from your customer.textCollect a string field from your customer.
custom_fields.dropdown(object, optional) Configuration fortype=dropdownfields.custom_fields.dropdown.options(array of objects, required) The options available for the customer to select. Up to 200 options allowed.custom_fields.dropdown.options.label(string, required) The label for the option, displayed to the customer. Up to 100 characters.The maximum length is 100 characters.
custom_fields.dropdown.options.value(string, required) The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.The maximum length is 100 characters.
custom_fields.dropdown.default_value(string, optional) The value that pre-fills the field on the payment page.Must match avaluein theoptionsarray.The maximum length is 100 characters.
custom_fields.numeric(object, optional) Configuration fortype=numericfields.custom_fields.numeric.default_value(string, optional) The value that pre-fills the field on the payment page.The maximum length is 255 characters.
custom_fields.numeric.maximum_length(integer, optional) The maximum character length constraint for the customer’s input.custom_fields.numeric.minimum_length(integer, optional) The minimum character length requirement for the customer’s input.
custom_fields.optional(boolean, optional) Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse.custom_fields.text(object, optional) Configuration fortype=textfields.custom_fields.text.default_value(string, optional) The value that pre-fills the field on the payment page.The maximum length is 255 characters.
custom_fields.text.maximum_length(integer, optional) The maximum character length constraint for the customer’s input.custom_fields.text.minimum_length(integer, optional) The minimum character length requirement for the customer’s input.
custom_text(object, optional) Display additional text for your customers using custom text. You can’t set this parameter ifui_modeiscustom.custom_text.after_submit(object, optional) Custom text that should be displayed after the payment confirmation button.custom_text.after_submit.message(string, required) Text can be up to 1200 characters in length.
custom_text.shipping_address(object, optional) Custom text that should be displayed alongside shipping address collection.custom_text.shipping_address.message(string, required) Text can be up to 1200 characters in length.
custom_text.submit(object, optional) Custom text that should be displayed alongside the payment confirmation button.custom_text.submit.message(string, required) Text can be up to 1200 characters in length.
custom_text.terms_of_service_acceptance(object, optional) Custom text that should be displayed in place of the default terms of service agreement text.custom_text.terms_of_service_acceptance.message(string, required) Text can be up to 1200 characters in length.
customer(string, optional) ID of an existing Customer, if one exists. Inpaymentmode, the customer’s most recently saved card payment method will be used to prefill the email, name, card details, and billing address on the Checkout page. Insubscriptionmode, the customer’s default payment method will be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer’s card details.If the Customer already has a valid email set, the email will be prefilled and not editable in Checkout. If the Customer does not have a valid
email, Checkout will set the email entered during the session on the Customer.If blank for Checkout Sessions in
subscriptionmode or withcustomer_creationset asalwaysinpaymentmode, Checkout will create a new Customer object based on information provided during the payment flow.You can set
payment_intent_data.setup_future_usageto have Checkout automatically attach the payment method to the Customer you pass in for future reuse.customer_account(string, optional) ID of an existing Account, if one exists. Has the same behavior ascustomer.customer_creation(enum, optional) Configure whether a Checkout Session creates a Customer during Session confirmation.When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout with customer_details.
Sessions that don’t create Customers instead are grouped by guest customers in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
Can only be set in
paymentandsetupmode. Possible enum values:alwaysThe Checkout Session will always create a Customer when a Session confirmation is attempted.if_requiredThe Checkout Session will only create a Customer if it is required for Session confirmation. Currently, onlysubscriptionmode Sessions andpaymentmode Sessions with post-purchase invoices enabled require a Customer.
customer_email(string, optional) If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once a session is complete, use thecustomerfield.The maximum length is 800 characters.
customer_update(object, optional) Controls what fields on Customer can be updated by the Checkout Session. Can only be provided whencustomeris provided.customer_update.address(enum, optional) Describes whether Checkout saves the billing address ontocustomer.address. To always collect a full billing address, usebilling_address_collection. Defaults tonever. Possible enum values:autoCheckout will automatically determine whether to update the provided Customer object using details from the session.neverCheckout will never update the provided Customer object.
customer_update.name(enum, optional) Describes whether Checkout saves the name ontocustomer.name. Defaults tonever. Possible enum values:autoCheckout will automatically determine whether to update the provided Customer object using details from the session.neverCheckout will never update the provided Customer object.
customer_update.shipping(enum, optional) Describes whether Checkout saves shipping information ontocustomer.shipping. To collect shipping information, useshipping_address_collection. Defaults tonever. Possible enum values:autoCheckout will automatically determine whether to update the provided Customer object using details from the session.neverCheckout will never update the provided Customer object.
discounts(array of objects, optional) The coupon or promotion code to apply to this Session. Currently, only up to one may be specified.discounts.coupon(string, optional) The ID of the coupon to apply to this Session.discounts.promotion_code(string, optional) The ID of a promotion code to apply to this Session.
excluded_payment_method_types(array of enums, optional) A list of the types of payment methods (e.g.,card) that should be excluded from this Checkout Session. This should only be used when payment methods for this Checkout Session are managed through the Stripe Dashboard.expires_at(timestamp, optional) The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.integration_identifier(string, optional) The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier.The maximum length is 200 characters.
invoice_creation(object, optional) Generate a post-purchase Invoice for one-time payments.invoice_creation.enabled(boolean, required) Set totrueto enable invoice creation.invoice_creation.invoice_data(object, optional) Parameters passed when creating invoices for payment-mode Checkout Sessions.invoice_creation.invoice_data.account_tax_ids(array of strings, optional) The account tax IDs associated with the invoice.invoice_creation.invoice_data.custom_fields(array of objects, optional) Default custom fields to be displayed on invoices for this customer.invoice_creation.invoice_data.custom_fields.name(string, required) The name of the custom field. This may be up to 40 characters.The maximum length is 40 characters.
invoice_creation.invoice_data.custom_fields.value(string, required) The value of the custom field. This may be up to 140 characters.The maximum length is 140 characters.
invoice_creation.invoice_data.description(string, optional) An arbitrary string attached to the object. Often useful for displaying to users.invoice_creation.invoice_data.footer(string, optional) Default footer to be displayed on invoices for this customer.invoice_creation.invoice_data.issuer(object, optional) The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.invoice_creation.invoice_data.issuer.type(enum, required) Type of the account referenced in the request. Possible enum values:accountIndicates that the account being referenced is a connected account which is different from the account making the API request but related to it.selfIndicates that the account being referenced is the account making the API request.
invoice_creation.invoice_data.issuer.account(string, required only if type is account) The connected account being referenced whentypeisaccount.
invoice_creation.invoice_data.metadata(object, optional) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.invoice_creation.invoice_data.rendering_options(object, optional) Default options for invoice PDF rendering for this customer.invoice_creation.invoice_data.rendering_options.amount_tax_display(enum, optional) How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One ofexclude_taxorinclude_inclusive_tax.include_inclusive_taxwill include inclusive tax (and exclude exclusive tax) in invoice PDF amounts.exclude_taxwill exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. Possible enum values:exclude_taxinclude_inclusive_tax
invoice_creation.invoice_data.rendering_options.template(string, optional) ID of the invoice rendering template to use for this invoice.
line_items(array of objects, required conditionally) A list of items the customer is purchasing. Use this parameter to pass one-time or recurring Prices. The parameter is required forpaymentandsubscriptionmode.For
paymentmode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.For
subscriptionmode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.line_items.adjustable_quantity(object, optional) When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.line_items.adjustable_quantity.enabled(boolean, required) Set to true if the quantity can be adjusted to any non-negative integer.line_items.adjustable_quantity.maximum(integer, optional) The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.line_items.adjustable_quantity.minimum(integer, optional) The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
line_items.dynamic_tax_rates(array of strings, optional) The tax rates that will be applied to this line item depending on the customer’s billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. You can’t set this parameter ifui_modeiscustom.line_items.metadata(object, optional) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.line_items.price(string, required conditionally) The ID of the Price or Plan object. One ofpriceorprice_datais required.line_items.price_data(object, required conditionally) Data used to generate a new Price object inline. One ofpriceorprice_datais required.line_items.price_data.currency(enum, required) Three-letter ISO currency code, in lowercase. Must be a supported currency.line_items.price_data.product(string, required conditionally) The ID of the Product that this Price will belong to. One ofproductorproduct_datais required.line_items.price_data.product_data(object, required conditionally) Data used to generate a new Product object inline. One ofproductorproduct_datais required.line_items.price_data.product_data.name(string, required) The product’s name, meant to be displayable to the customer.line_items.price_data.product_data.description(string, optional) The product’s description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.line_items.price_data.product_data.images(array of strings, optional) A list of up to 8 URLs of images for this product, meant to be displayable to the customer.line_items.price_data.product_data.metadata(object, optional) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.line_items.price_data.product_data.tax_code(string, recommended if calculating taxes) A tax code ID.line_items.price_data.product_data.tax_details(object, recommended if calculating taxes) Tax details for this product, including the tax code and an optional performance location.line_items.price_data.product_data.tax_details.performance_location(string, optional) A tax location ID. Depending on the tax code, this is required, optional, or not supported.line_items.price_data.product_data.tax_details.tax_code(string, optional) A tax code ID.
line_items.price_data.product_data.unit_label(string, optional) A label that represents units of this product. When set, this will be included in customers’ receipts, invoices, Checkout, and the customer portal.The maximum length is 12 characters.
line_items.price_data.recurring(object, optional) The recurring components of a price such asintervalandinterval_count.line_items.price_data.recurring.interval(enum, required) Specifies billing frequency. Eitherday,week,monthoryear. Possible enum values:daymonthweekyear
line_items.price_data.recurring.interval_count(integer, optional) The number of intervals between subscription billings. For example,interval=monthandinterval_count=3bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
line_items.price_data.tax_behavior(enum, recommended if calculating taxes) Only required if a default tax behavior) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed. Possible enum values:exclusiveinclusiveunspecified
line_items.price_data.unit_amount(integer, required conditionally) A non-negative integer in the smallest currency unit representing how much to charge. One ofunit_amountorunit_amount_decimalis required.line_items.price_data.unit_amount_decimal(string, required conditionally) Same asunit_amount, but accepts a decimal value in the smallest currency unit with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
line_items.quantity(integer, required conditionally) The quantity of the line item being purchased. Quantity should not be defined whenrecurring.usage_type=metered.line_items.tax_rates(array of strings, optional) The tax rates which apply to this line item.
locale(enum, optional) The IETF language tag of the locale Checkout is displayed in. If blank orauto, the browser’s locale is used. Possible enum values:autobgcsdadeelenen-GBeses-419etfifilfrfr-CAhrhuiditjakoltlvmsmtnbnlplptpt-BRroruskslsvthtrvizhzh-HKzh-TW
managed_payments(object, optional) Settings for Managed Payments for this Checkout Session and resulting PaymentIntents, Invoices, and Subscriptions.managed_payments.enabled(boolean, optional) Set totrueto enable Managed Payments, Stripe’s merchant of record solution, for this session.
metadata(object, optional) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.mode(enum, required) The mode of the Checkout Session. Passsubscriptionif the Checkout Session includes at least one recurring item. Possible enum values:paymentAccept one-time payments for cards, iDEAL, and more.setupSave payment details to charge your customers later.subscriptionUse Stripe Billing to set up fixed-price subscriptions.
name_collection(object, optional) Controls name collection settings for the session.You can configure Checkout to collect your customers’ business names, individual names, or both. Each name field can be either required or optional.
If a Customer is created or provided, the names can be saved to the Customer object as well.
You can’t set this parameter if
ui_modeiscustom.name_collection.business(object, optional) Controls settings applied for collecting the customer’s business name on the session.name_collection.business.enabled(boolean, required) Enable business name collection on the Checkout Session. Defaults tofalse.name_collection.business.optional(boolean, optional) Whether the customer is required to provide a business name before completing the Checkout Session. Defaults tofalse.
name_collection.individual(object, optional) Controls settings applied for collecting the customer’s individual name on the session.name_collection.individual.enabled(boolean, required) Enable individual name collection on the Checkout Session. Defaults tofalse.name_collection.individual.optional(boolean, optional) Whether the customer is required to provide their name before completing the Checkout Session. Defaults tofalse.
optional_items(array of objects, optional) A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring Prices.There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
For
paymentmode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.For
subscriptionmode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.You can’t set this parameter if
ui_modeiscustom.optional_items.price(string, required) The ID of the Price or Plan object.optional_items.quantity(integer, required) The initial quantity of the line item created when a customer chooses to add this optional item to their order.optional_items.adjustable_quantity(object, optional) When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.optional_items.adjustable_quantity.enabled(boolean, required) Set to true if the quantity can be adjusted to any non-negative integer.optional_items.adjustable_quantity.maximum(integer, optional) The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.optional_items.adjustable_quantity.minimum(integer, optional) The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if theminimumconfigured here is greater than 0. By default this value is 0.
origin_context(enum, optional) Where the user is coming from. This informs the optimizations that are applied to the session. You can’t set this parameter ifui_modeiselements. Possible enum values:mobile_appThe Checkout Session originates from a mobile app.webThe Checkout Session originates from a web page.
payment_intent_data(object, optional) A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions inpaymentmode.payment_intent_data.application_fee_amount(integer, optional) The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner’s Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents use case for connected accounts.payment_intent_data.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:automaticStripe automatically captures funds when the customer authorizes the payment.automatic_async(Default) Stripe asynchronously captures funds when the customer authorizes the payment. Recommended overcapture_method=automaticdue to improved latency. Read the integration guide for more information.manualPlace a hold on the funds when the customer authorizes the payment, but don’t capture the funds until later. (Not all payment methods support this.)
payment_intent_data.description(string, optional) An arbitrary string attached to the object. Often useful for displaying to users.payment_intent_data.metadata(object, optional) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.payment_intent_data.on_behalf_of(string, optional) The Stripe account ID for which these funds are intended. For details, see the PaymentIntents use case for connected accounts.payment_intent_data.receipt_email(string, optional) Email address that the receipt for the resulting payment will be sent to. Ifreceipt_emailis specified for a payment in live mode, a receipt will be sent regardless of your email settings.payment_intent_data.setup_future_usage(enum, optional) Indicates that you intend to make future payments with the payment method collected by this Checkout Session.When setting this to
on_session, Checkout will show a notice to the customer that their payment details will be saved.When setting this to
off_session, Checkout will show a notice to the customer that their payment details will be saved and used for future payments.If a Customer has been provided or Checkout creates a new Customer, Checkout will attach the payment method to the Customer.
If Checkout does not create a Customer, the payment method is not attached to a Customer. To reuse the payment method, you can retrieve it from the Checkout Session’s PaymentIntent.
When processing card payments, Checkout also uses
setup_future_usageto dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA. Possible enum values:off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.on_sessionUseon_sessionif you intend to only reuse the payment method when your customer is present in your checkout flow.
payment_intent_data.shipping(object, optional) Shipping information for this payment.payment_intent_data.shipping.address(object, required) Shipping address.payment_intent_data.shipping.address.line1(string, required) Address line 1, such as the street, PO Box, or company name.payment_intent_data.shipping.address.city(string, optional) City, district, suburb, town, or village.payment_intent_data.shipping.address.country(string, optional) Two-letter country code (ISO 3166-1 alpha-2).payment_intent_data.shipping.address.line2(string, optional) Address line 2, such as the apartment, suite, unit, or building.payment_intent_data.shipping.address.postal_code(string, optional) ZIP or postal code.payment_intent_data.shipping.address.state(string, optional) State, county, province, or region (ISO 3166-2).
payment_intent_data.shipping.name(string, required) Recipient name.payment_intent_data.shipping.carrier(string, optional) The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.payment_intent_data.shipping.phone(string, optional) Recipient phone (including extension).payment_intent_data.shipping.tracking_number(string, optional) The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
payment_intent_data.statement_descriptor(string, optional) Text that appears on the customer’s statement as the statement descriptor for a non-card charge. This value overrides the account’s default statement descriptor. For information about requirements, including the 22-character limit, see the Statement Descriptor docs.Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix instead.
payment_intent_data.statement_descriptor_suffix(string, optional) Provides information about a card charge. Concatenated to the account’s statement descriptor prefix to form the complete statement descriptor that appears on the customer’s statement.payment_intent_data.transfer_data(object, optional) The parameters used to automatically create a Transfer when the payment succeeds. For more information, see the PaymentIntents use case for connected accounts.payment_intent_data.transfer_data.destination(string, required) If specified, successful charges will be attributed to the destination account for tax reporting, and the funds from charges will be transferred to the destination account. The ID of the resulting transfer will be returned on the successful charge’stransferfield.payment_intent_data.transfer_data.amount(integer, optional) The amount that will be transferred automatically when a charge succeeds.
payment_intent_data.transfer_group(string, optional) A string that identifies the resulting payment as part of a group. See the PaymentIntents use case for connected accounts for details.
payment_method_collection(enum, optional) Specify whether Checkout should collect a payment method. When set toif_required, Checkout will not collect a payment method when the total due for the session is 0. This may occur if the Checkout Session includes a free trial or a discount.Can only be set in
subscriptionmode. Defaults toalways.If you’d like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial. Possible enum values:
alwaysThe Checkout Session will always collect a PaymentMethod.if_requiredThe Checkout Session will only collect a PaymentMethod if there is an amount due.
payment_method_configuration(string, optional) The ID of the payment method configuration to use with this Checkout session.The maximum length is 100 characters.
payment_method_data(object, optional) This parameter allows you to set some attributes on the payment method created during a Checkout session.payment_method_data.allow_redisplay(enum, optional) Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout. Possible enum values:alwaysUsealwaysto indicate that this payment method can always be shown to a customer in a checkout flow.limitedUselimitedto indicate that this payment method can’t always be shown to a customer in a checkout flow. For example, it can only be shown in the context of a specific subscription.unspecifiedThis is the default value for payment methods whereallow_redisplaywasn’t set.
payment_method_options(object, optional) Payment-method-specific configuration.payment_method_options.acss_debit(object, optional) contains details about the ACSS Debit payment method options. You can’t set this parameter ifui_modeiselements.payment_method_options.acss_debit.currency(enum, optional) Three-letter ISO currency code, in lowercase. Must be a supported currency. This is only accepted for Checkout Sessions insetupmode. Possible enum values:cadCanadian dollarsusdUS dollars
payment_method_options.acss_debit.mandate_options(object, optional) Additional fields for Mandate creationpayment_method_options.acss_debit.mandate_options.custom_mandate_url(string, optional) A URL for custom mandate text to render during confirmation step. The URL will be rendered with additional GET parameterspayment_intentandpayment_intent_client_secretwhen confirming a Payment Intent, orsetup_intentandsetup_intent_client_secretwhen confirming a Setup Intent.payment_method_options.acss_debit.mandate_options.default_for(array of enums, optional) List of Stripe products where this mandate can be selected automatically. Only usable insetupmode. Possible enum values:invoiceEnables payments for Stripe Invoices. ‘subscription’ must also be provided.subscriptionEnables payments for Stripe Subscriptions. ‘invoice’ must also be provided.
payment_method_options.acss_debit.mandate_options.interval_description(string, optional) Description of the mandate interval. Only required if ‘payment_schedule’ parameter is ‘interval’ or ‘combined’.The maximum length is 500 characters.
payment_method_options.acss_debit.mandate_options.payment_schedule(enum, optional) Payment schedule for the mandate. Possible enum values:combinedPayments can be initiated at a pre-defined interval or sporadicallyintervalPayments are initiated at a regular pre-defined intervalsporadicPayments are initiated sporadically
payment_method_options.acss_debit.mandate_options.transaction_type(enum, optional) Transaction type of the mandate. Possible enum values:businessTransactions are made for business reasonspersonalTransactions are made for personal reasons
payment_method_options.acss_debit.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.on_sessionUseon_sessionif you intend to only reuse the payment method when your customer is present in your checkout flow.
payment_method_options.acss_debit.target_date(string, optional) Controls when Stripe will attempt to debit the funds from the customer’s account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.payment_method_options.acss_debit.verification_method(enum, optional) Verification method for the intent Possible enum values:automaticInstant verification with fallback to microdeposits.instantInstant verification.microdepositsVerification using microdeposits.
payment_method_options.affirm(object, optional) contains details about the Affirm payment method options.payment_method_options.affirm.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.affirm.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.afterpay_clearpay(object, optional) contains details about the Afterpay Clearpay payment method options.payment_method_options.afterpay_clearpay.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.afterpay_clearpay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.alipay(object, optional) contains details about the Alipay payment method options.payment_method_options.alipay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.alma(object, optional) contains details about the Alma payment method options.payment_method_options.alma.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.amazon_pay(object, optional) contains details about the AmazonPay payment method options.payment_method_options.amazon_pay.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.amazon_pay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.au_becs_debit(object, optional) contains details about the AU Becs Debit payment method options.payment_method_options.au_becs_debit.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.au_becs_debit.target_date(string, optional) Controls when Stripe will attempt to debit the funds from the customer’s account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
payment_method_options.bacs_debit(object, optional) contains details about the Bacs Debit payment method options.payment_method_options.bacs_debit.mandate_options(object, optional) Additional fields for Mandate creationpayment_method_options.bacs_debit.mandate_options.reference_prefix(string, optional) Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: ‘/’, ‘_’, ‘-’, ‘&’, ‘.’. Cannot begin with ‘DDIC’ or ‘STRIPE’.The maximum length is 12 characters.
payment_method_options.bacs_debit.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.on_sessionUseon_sessionif you intend to only reuse the payment method when your customer is present in your checkout flow.
payment_method_options.bacs_debit.target_date(string, optional) Controls when Stripe will attempt to debit the funds from the customer’s account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
payment_method_options.bancontact(object, optional) contains details about the Bancontact payment method options.payment_method_options.bancontact.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.billie(object, optional) contains details about the Billie payment method options.payment_method_options.billie.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.boleto(object, optional) contains details about the Boleto payment method options.payment_method_options.boleto.expires_after_days(integer, optional) The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.payment_method_options.boleto.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.on_sessionUseon_sessionif you intend to only reuse the payment method when your customer is present in your checkout flow.
payment_method_options.card(object, optional) contains details about the Card payment method options.payment_method_options.card.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.card.installments(object, optional) Installment options for card paymentspayment_method_options.card.installments.enabled(boolean, optional) Setting to true enables installments for this Checkout Session. Setting to false will prevent any installment plan from applying to a payment.
payment_method_options.card.request_extended_authorization(enum, optional) Request ability to capture beyond the standard authorization validity window for this CheckoutSession. Possible enum values:if_availableUseif_availableif you want to extend the capture window when eligible for extended authorization.neverUseneverif you don’t want to extend the capture window.
payment_method_options.card.request_incremental_authorization(enum, optional) Request ability to increment the authorization for this CheckoutSession. Possible enum values:if_availableUseif_availableif you want to increment the authorization on the PaymentIntent when eligible.neverUseneverif you don’t want to increment the authorization on the PaymentIntent.
payment_method_options.card.request_multicapture(enum, optional) Request ability to make multiple captures for this CheckoutSession. Possible enum values:if_availableUseif_availableif you want to use multicapture when eligible.neverUseneverif you don’t want to use multicapture.
payment_method_options.card.request_overcapture(enum, optional) Request ability to overcapture for this CheckoutSession. Possible enum values:if_availableUseif_availableif you want to overcapture the payment when eligible.neverUseneverif you don’t want to overcapture the payment.
payment_method_options.card.request_three_d_secure(enum, optional) We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and other requirements. However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults toautomatic. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine. Possible enum values:anyUseanyto manually request 3DS with a preference for africtionlessflow, increasing the likelihood of the authentication being completed without any additional input from the customer. 3DS will always be attempted if it is supported for the card, but Stripe can’t guarantee your preference because the issuer determines the ultimate authentication flow. To learn more about 3DS flows, read our guide.automatic(Default) Our SCA Engine automatically prompts your customers for authentication based on risk level and other requirements.challengeUsechallengeto request 3DS with a preference for achallengeflow, where the customer must respond to a prompt for active authentication. Stripe can’t guarantee your preference because the issuer determines the ultimate authentication flow. To learn more about 3DS flows, read our guide.
payment_method_options.card.restrictions(object, optional) Restrictions to apply to the card payment method. For example, you can block specific card brands. You can’t set this parameter ifui_modeiscustom.payment_method_options.card.restrictions.brands_blocked(array of enums, optional) Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can’t complete the Session. Possible enum values:american_expressIncludeamerican_expressto block American Express cards.discover_global_networkIncludediscover_global_networkto block all cards within the Discover Global Network. This encompasses the following card brands:- Discover
- Diners Club
- JCB
- UnionPay
- Elo
mastercardIncludemastercardto block Mastercard cards.visaIncludevisato block Visa cards.
payment_method_options.card.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.on_sessionUseon_sessionif you intend to only reuse the payment method when your customer is present in your checkout flow.
payment_method_options.card.statement_descriptor_suffix_kana(string, optional) Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the concatenation of both prefix and suffix (including separators) will appear truncated to 22 characters.payment_method_options.card.statement_descriptor_suffix_kanji(string, optional) Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the concatenation of both prefix and suffix (including separators) will appear truncated to 17 characters.
payment_method_options.cashapp(object, optional) contains details about the Cashapp Pay payment method options.payment_method_options.cashapp.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.cashapp.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.on_sessionUseon_sessionif you intend to only reuse the payment method when your customer is present in your checkout flow.
payment_method_options.crypto(object, optional) contains details about the Crypto payment method options.payment_method_options.crypto.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.customer_balance(object, optional) contains details about the Customer Balance payment method options.payment_method_options.customer_balance.bank_transfer(object, optional) Configuration for the bank transfer funding type, if thefunding_typeis set tobank_transfer.payment_method_options.customer_balance.bank_transfer.type(enum, required) The list of bank transfer types that this PaymentIntent is allowed to use for funding. Possible enum values:eu_bank_transfereu_bank_transfer bank transfer typegb_bank_transfergb_bank_transfer bank transfer typejp_bank_transferjp_bank_transfer bank transfer typemx_bank_transfermx_bank_transfer bank transfer typeus_bank_transferus_bank_transfer bank transfer type
payment_method_options.customer_balance.bank_transfer.eu_bank_transfer(object, optional) Configuration for eu_bank_transfer funding type.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country(string, required) The desired country code of the bank account information. Permitted values include:DE,FR,IE, orNL.
payment_method_options.customer_balance.bank_transfer.requested_address_types(array of enums, optional) List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.Permitted values include:
sort_code,zengin,iban, orspei. Possible enum values:abaaba bank account address typeibaniban bank account address typesepasepa bank account address typesort_codesort_code bank account address typespeispei bank account address typeswiftswift bank account address typezenginzengin bank account address type
payment_method_options.customer_balance.funding_type(enum, optional) The funding method type to be used when there are not enough funds in the customer balance. Permitted values include:bank_transfer. Possible enum values:bank_transfer
payment_method_options.customer_balance.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.demo_pay(object, optional) contains details about the DemoPay payment method options.payment_method_options.demo_pay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.eps(object, optional) contains details about the EPS payment method options.payment_method_options.eps.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.fpx(object, optional) contains details about the FPX payment method options.payment_method_options.fpx.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.giropay(object, optional) contains details about the Giropay payment method options.payment_method_options.giropay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.grabpay(object, optional) contains details about the Grabpay payment method options.payment_method_options.grabpay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.ideal(object, optional) contains details about the Ideal payment method options.payment_method_options.ideal.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.kakao_pay(object, optional) contains details about the Kakao Pay payment method options.payment_method_options.kakao_pay.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.kakao_pay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.klarna(object, optional) contains details about the Klarna payment method options.payment_method_options.klarna.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.klarna.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.klarna.subscriptions(array of objects, optional) Subscription details if the Checkout Session sets up a future subscription.payment_method_options.klarna.subscriptions.interval(enum, required) Unit of time between subscription charges.payment_method_options.klarna.subscriptions.next_billing(object, required) Describes the upcoming charge for this subscription.payment_method_options.klarna.subscriptions.next_billing.amount(integer, required) The amount of the next charge for the subscription.payment_method_options.klarna.subscriptions.next_billing.date(string, required) The date of the next charge for the subscription in YYYY-MM-DD format.
payment_method_options.klarna.subscriptions.reference(string, required) A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.The maximum length is 255 characters.
payment_method_options.klarna.subscriptions.interval_count(integer, optional) The number of intervals (specified in theintervalattribute) between subscription charges. For example,interval=monthandinterval_count=3charges every 3 months.payment_method_options.klarna.subscriptions.name(string, optional) Name for subscription.The maximum length is 255 characters.
payment_method_options.konbini(object, optional) contains details about the Konbini payment method options.payment_method_options.konbini.expires_after_days(integer, optional) The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini andexpires_after_daysset to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.payment_method_options.konbini.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.kr_card(object, optional) contains details about the Korean card payment method options.payment_method_options.kr_card.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.kr_card.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.link(object, optional) contains details about the Link payment method options.payment_method_options.link.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.link.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.mobilepay(object, optional) contains details about the Mobilepay payment method options.payment_method_options.mobilepay.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.mobilepay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.multibanco(object, optional) contains details about the Multibanco payment method options.payment_method_options.multibanco.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.naver_pay(object, optional) contains details about the Naver Pay payment method options.payment_method_options.naver_pay.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.naver_pay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.oxxo(object, optional) contains details about the OXXO payment method options.payment_method_options.oxxo.expires_after_days(integer, optional) The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.payment_method_options.oxxo.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.p24(object, optional) contains details about the P24 payment method options.payment_method_options.p24.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.p24.tos_shown_and_accepted(boolean, optional) Confirm that the payer has accepted the P24 terms and conditions.
payment_method_options.pay_by_bank(object, optional) contains details about the Pay By Bank payment method options.payment_method_options.payco(object, optional) contains details about the PAYCO payment method options.payment_method_options.payco.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.paynow(object, optional) contains details about the PayNow payment method options.payment_method_options.paynow.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.paypal(object, optional) contains details about the PayPal payment method options.payment_method_options.paypal.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.paypal.preferred_locale(enum, optional) Preferred locale of the PayPal checkout page that the customer is redirected to. Possible enum values:cs-CZCzech - The Czech Republicda-DKDanish - Denmarkde-ATGerman - Austriade-DEGerman - Germanyde-LUGerman - Luxembourgel-GRGreek - Greeceen-GBEnglish - United Kingdomen-USEnglish - United States of Americaes-ESSpanish - Spainfi-FIFinnish - Finlandfr-BEFrench - Belgiumfr-FRFrench - Francefr-LUFrench - Luxembourghu-HUHungarian - Hungaryit-ITItalian - Italynl-BEDutch - Belgiumnl-NLDutch - Netherlandspl-PLPolish - Polandpt-PTPortuguese - Portugalsk-SKSlovak - Slovakiasv-SESwedish - Sweden
payment_method_options.paypal.reference(string, optional) A reference of the PayPal transaction visible to customer which is mapped to PayPal’s invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.The maximum length is 127 characters.
payment_method_options.paypal.risk_correlation_id(string, optional) The risk correlation ID for an on-session payment using a saved PayPal payment method.The maximum length is 32 characters.
payment_method_options.paypal.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA.If you’ve already set
setup_future_usageand you’re performing a request using a publishable key, you can only update the value fromon_sessiontooff_session. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.payto(object, optional) contains details about the PayTo payment method options.payment_method_options.payto.mandate_options(object, optional) Additional fields for Mandate creationpayment_method_options.payto.mandate_options.amount(integer, optional) Amount that will be collected. It is required whenamount_typeisfixed.payment_method_options.payto.mandate_options.amount_type(enum, optional) The type of amount that will be collected. The amount charged must be exact or up to the value ofamountparam forfixedormaximumtype respectively. Defaults tomaximum. Possible enum values:fixedThe amount is the exact amount that will be charged.maximumThe amount is the maximum amount that can be charged.
payment_method_options.payto.mandate_options.end_date(string, optional) Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.payment_method_options.payto.mandate_options.payment_schedule(enum, optional) The periodicity at which payments will be collected. Defaults toadhoc. Possible enum values:adhocPayments will be made ad hocannualPayments will be made annuallydailyPayments will be made dailyfortnightlyPayments will be made fortnightlymonthlyPayments will be made monthlyquarterlyPayments will be made quarterlysemi_annualPayments will be made semi-annuallyweeklyPayments will be made weekly
payment_method_options.payto.mandate_options.payments_per_period(integer, optional) The number of payments that will be made during a payment period. Defaults to 1 except for whenpayment_scheduleisadhoc. In that case, it defaults to no limit.payment_method_options.payto.mandate_options.purpose(enum, optional) The purpose for which payments are made. Has a default value based on your merchant category code. Possible enum values:dependant_supportTransactions are made for dependant support reasonsgovernmentTransactions are made for government reasonsloanTransactions are made for loan reasonsmortgageTransactions are made for mortgage reasonsotherTransactions are made for other reasonspensionTransactions are made for pension reasonspersonalTransactions are made for personal reasonsretailTransactions are made for retail reasonssalaryTransactions are made for salary reasonstaxTransactions are made for tax reasonsutilityTransactions are made for utility reasons
payment_method_options.payto.mandate_options.start_date(string, optional) Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
payment_method_options.payto.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.pix(object, optional) contains details about the Pix payment method options.payment_method_options.pix.amount_includes_iof(enum, optional) Determines if the amount includes the IOF tax. Defaults tonever. Possible enum values:alwaysThe IOF tax is included in the amount.neverThe IOF tax is not included in the amount.
payment_method_options.pix.expires_after_seconds(integer, optional) The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.payment_method_options.pix.mandate_options(object, optional) Additional fields for mandate creation.payment_method_options.pix.mandate_options.amount(integer, optional) Amount to be charged for future payments. Required whenamount_type=fixed. If not provided foramount_type=maximum, defaults to 40000.payment_method_options.pix.mandate_options.amount_includes_iof(enum, optional) Determines if the amount includes the IOF tax. Defaults tonever. Possible enum values:alwaysThe IOF tax is included in the amount.neverThe IOF tax is not included in the amount.
payment_method_options.pix.mandate_options.amount_type(enum, optional) Type of amount. Defaults tomaximum. Possible enum values:fixedThe exact amount for future payments.maximumThe maximum amount for future payments.
payment_method_options.pix.mandate_options.currency(enum, optional) Three-letter ISO currency code, in lowercase. Onlybrlis supported currently.payment_method_options.pix.mandate_options.end_date(string, optional) Date when the mandate expires and no further payments will be charged, inYYYY-MM-DD. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.payment_method_options.pix.mandate_options.payment_schedule(enum, optional) Schedule at which the future payments will be charged. Defaults tomonthly. Possible enum values:halfyearlyThe future payments will be charged half-yearly.monthlyThe future payments will be charged monthly.quarterlyThe future payments will be charged quarterly.weeklyThe future payments will be charged weekly.yearlyThe future payments will be charged yearly.
payment_method_options.pix.mandate_options.reference(string, optional) Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.The maximum length is 35 characters.
payment_method_options.pix.mandate_options.start_date(string, optional) Start date of the mandate, inYYYY-MM-DD. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
payment_method_options.pix.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.revolut_pay(object, optional) contains details about the RevolutPay payment method options.payment_method_options.revolut_pay.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.revolut_pay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.samsung_pay(object, optional) contains details about the Samsung Pay payment method options.payment_method_options.samsung_pay.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.satispay(object, optional) contains details about the Satispay payment method options.payment_method_options.satispay.capture_method(enum, optional) Controls when the funds will be captured from the customer’s account. Possible enum values:manualUsemanualif you intend to place the funds on hold and want to override the top-levelcapture_methodvalue for this payment method.
payment_method_options.sepa_debit(object, optional) contains details about the Sepa Debit payment method options.payment_method_options.sepa_debit.mandate_options(object, optional) Additional fields for Mandate creationpayment_method_options.sepa_debit.mandate_options.reference_prefix(string, optional) Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: ‘/’, ‘_’, ‘-’, ‘&’, ‘.’. Cannot begin with ‘STRIPE’.The maximum length is 12 characters.
payment_method_options.sepa_debit.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.on_sessionUseon_sessionif you intend to only reuse the payment method when your customer is present in your checkout flow.
payment_method_options.sepa_debit.target_date(string, optional) Controls when Stripe will attempt to debit the funds from the customer’s account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
payment_method_options.sofort(object, optional) contains details about the Sofort payment method options.payment_method_options.sofort.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_options.swish(object, optional) contains details about the Swish payment method options.payment_method_options.swish.reference(string, optional) The order reference that will be displayed to customers in the Swish application. Defaults to theidof the Payment Intent.
payment_method_options.twint(object, optional) contains details about the TWINT payment method options.payment_method_options.twint.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.
payment_method_options.upi(object, optional) contains details about the UPI payment method options.payment_method_options.upi.mandate_options(object, optional) Additional fields for Mandate creationpayment_method_options.upi.mandate_options.amount(integer, optional) Amount to be charged for future payments.payment_method_options.upi.mandate_options.amount_type(enum, optional) One offixedormaximum. Iffixed, theamountparam refers to the exact amount to be charged in future payments. Ifmaximum, the amount charged can be up to the value passed for theamountparam. Possible enum values:fixedIffixed, theamountparam refers to the exact amount to be charged in future payments.maximumIfmaximum, the amount charged can be up to the value passed for theamountparam.
payment_method_options.upi.mandate_options.description(string, optional) A description of the mandate or subscription that is meant to be displayed to the customer.The maximum length is 20 characters.
payment_method_options.upi.mandate_options.end_date(timestamp, optional) End date of the mandate or subscription.
payment_method_options.us_bank_account(object, optional) contains details about the Us Bank Account payment method options.payment_method_options.us_bank_account.financial_connections(object, optional) Additional fields for Financial Connections Session creationpayment_method_options.us_bank_account.financial_connections.permissions(array of strings, optional) The list of permissions to request. If this parameter is passed, thepayment_methodpermission must be included. Valid permissions include:balances,ownership,payment_method, andtransactions.payment_method_options.us_bank_account.financial_connections.prefetch(array of enums, optional) List of data features that you would like to retrieve upon account creation. Possible enum values:balancesRequests to prefetch balance data on accounts collected in this session.ownershipRequests to prefetch ownership data on accounts collected in this session.transactionsRequests to prefetch transaction data on accounts collected in this session.
payment_method_options.us_bank_account.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.off_sessionUseoff_sessionif your customer may or may not be present in your checkout flow.on_sessionUseon_sessionif you intend to only reuse the payment method when your customer is present in your checkout flow.
payment_method_options.us_bank_account.target_date(string, optional) Controls when Stripe will attempt to debit the funds from the customer’s account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.payment_method_options.us_bank_account.verification_method(enum, optional) Verification method for the intent Possible enum values:automaticInstant verification with fallback to microdeposits.instantInstant verification only.
payment_method_options.wechat_pay(object, optional) contains details about the WeChat Pay payment method options.payment_method_options.wechat_pay.client(enum, required) The client type that the end customer will pay from Possible enum values:androidThe end customer will pay from an Android appiosThe end customer will pay from an iOS appwebThe end customer will pay from web browser
payment_method_options.wechat_pay.app_id(string, optional) The app ID registered with WeChat Pay. Only required when client is ios or android.payment_method_options.wechat_pay.setup_future_usage(enum, optional) Indicates that you intend to make future payments with this PaymentIntent’s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don’t provide a Customer, you can still attach the payment method to a Customer after the transaction completes.
If the payment method is
card_presentand isn’t a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.When processing card payments, Stripe uses
setup_future_usageto help you comply with regional legislation and network rules, such as SCA. Possible enum values:noneUsenoneif you do not intend to reuse this payment method and want to override the top-levelsetup_future_usagevalue for this payment method.
payment_method_types(array of enums, optional) A list of the types of payment methods (e.g.,card) this Checkout Session can accept.You can omit this attribute to manage your payment methods from the Stripe Dashboard. See Dynamic Payment Methods for more details.
Read more about the supported payment methods and their requirements in our payment method details guide.
If multiple payment methods are passed, Checkout will dynamically reorder them to prioritize the most relevant payment methods based on the customer’s location and other characteristics.
permissions(object, optional) This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creatingembeddedorcustomsessions.For specific permissions, please refer to their dedicated subsections, such as
permissions.update_shipping_details.permissions.update_shipping_details(enum, optional) Determines which entity is allowed to update the shipping details.Default is
client_only. Stripe Checkout client will automatically update the shipping details. If set toserver_only, only your server is allowed to update the shipping details.When set to
server_only, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API. Possible enum values:client_onlyThe field of the CheckoutSession can only be updated by the client via the publishable key.server_onlyThe field of the CheckoutSession can only be updated by the server via the secret key.
phone_number_collection(object, optional) Controls phone number collection settings for the session.We recommend that you review your privacy policy and check with your legal contacts before using this feature. Learn more about collecting phone numbers with Checkout.
phone_number_collection.enabled(boolean, required) Set totrueto enable phone number collection.Can only be set in
paymentandsubscriptionmode.
redirect_on_completion(enum, optional) This parameter applies toui_mode: embedded_page. Learn more about the redirect behavior of embedded sessions. Defaults toalways. Possible enum values:alwaysThe Session will always redirect to thereturn_urlafter successful confirmation.if_requiredThe Session will only redirect to thereturn_urlafter a redirect-based payment method is used.neverThe Session will never redirect to thereturn_url, and redirect-based payment methods will be disabled.
return_url(string, required conditionally) The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method’s app or site. This parameter is required ifui_modeisembedded_pageorelementsand redirect-based payment methods are enabled on the session.saved_payment_method_options(object, optional) Controls saved payment method settings for the session. Only available inpaymentandsubscriptionmode.saved_payment_method_options.allow_redisplay_filters(array of enums, optional) Uses theallow_redisplayvalue of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout. Possible enum values:alwaysUsealwaysto indicate that this payment method can always be shown to a customer in a checkout flow.limitedUselimitedto indicate that this payment method can’t always be shown to a customer in a checkout flow. For example, it can only be shown in the context of a specific subscription.unspecifiedThis is the default value for payment methods whereallow_redisplaywasn’t set.
saved_payment_method_options.payment_method_remove(enum, optional) Enable customers to choose if they wish to remove their saved payment methods. Disabled by default. Possible enum values:disabledRemoving payment methods will be disabled for this Checkout Session. This is the default option.enabledRemoving payment methods will be enabled for this Checkout Session.
saved_payment_method_options.payment_method_save(enum, optional) Enable customers to choose if they wish to save their payment method for future use. Disabled by default. Possible enum values:disabledSaving payment methods will be disabled for this Checkout Session. This is the default option.enabledSaving payment methods will be enabled for this Checkout Session.
setup_intent_data(object, optional) A subset of parameters to be passed to SetupIntent creation for Checkout Sessions insetupmode.setup_intent_data.description(string, optional) An arbitrary string attached to the object. Often useful for displaying to users.setup_intent_data.metadata(object, optional) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.setup_intent_data.on_behalf_of(string, optional) The Stripe account for which the setup is intended.
shipping_address_collection(object, optional) When set, provides configuration for Checkout to collect a shipping address from a customer.shipping_address_collection.allowed_countries(array of enums, required) An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations. Possible enum values:ACADAEAFAGAIALAMAOAQARATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBVBWBYBZCACDCFCGCHCICKCLCMCNCOCRCVCWCYCZDEDJDKDMDODZECEEEGEHERESETFIFJFKFOFRGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHNHRHTHUIDIEILIMINIOIQISITJEJMJOJPKEKGKHKIKMKNKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMKMLMMMNMOMQMRMSMTMUMVMWMXMYMZNANCNENGNINLNONPNRNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPYQARERORSRURWSASBSCSDSESGSHSISJSKSLSMSNSOSRSSSTSVSXSZTATCTDTFTGTHTJTKTLTMTNTOTRTTTVTWTZUAUGUSUYUZVAVCVEVGVNVUWFWSXKYEYTZAZMZWZZ
shipping_options(array of objects, optional) The shipping rate options to apply to this Session. Up to a maximum of 5.shipping_options.shipping_rate(string, required unless shipping_rate_data is provided) The ID of the Shipping Rate to use for this shipping option.shipping_options.shipping_rate_data(object, required unless shipping_rate is provided) Parameters to be passed to Shipping Rate creation for this shipping option.shipping_options.shipping_rate_data.display_name(string, required) The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.The maximum length is 100 characters.
shipping_options.shipping_rate_data.delivery_estimate(object, optional) The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.shipping_options.shipping_rate_data.delivery_estimate.maximum(object, optional) The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.shipping_options.shipping_rate_data.delivery_estimate.maximum.unit(enum, required) A unit of time. Possible enum values:business_dayThe delivery estimate is in business days.dayThe delivery estimate is in days.hourThe delivery estimate is in hours.monthThe delivery estimate is in months.weekThe delivery estimate is in weeks.
shipping_options.shipping_rate_data.delivery_estimate.maximum.value(integer, required) Must be greater than 0.
shipping_options.shipping_rate_data.delivery_estimate.minimum(object, optional) The lower bound of the estimated range. If empty, represents no lower bound.shipping_options.shipping_rate_data.delivery_estimate.minimum.unit(enum, required) A unit of time. Possible enum values:business_dayThe delivery estimate is in business days.dayThe delivery estimate is in days.hourThe delivery estimate is in hours.monthThe delivery estimate is in months.weekThe delivery estimate is in weeks.
shipping_options.shipping_rate_data.delivery_estimate.minimum.value(integer, required) Must be greater than 0.
shipping_options.shipping_rate_data.fixed_amount(object, optional) Describes a fixed amount to charge for shipping. Must be present if type isfixed_amount.shipping_options.shipping_rate_data.fixed_amount.amount(integer, required) A non-negative integer in cents representing how much to charge.shipping_options.shipping_rate_data.fixed_amount.currency(enum, required) Three-letter ISO currency code, in lowercase. Must be a supported currency.shipping_options.shipping_rate_data.fixed_amount.currency_options(object, optional) Shipping rates defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.shipping_options.shipping_rate_data.fixed_amount.currency_options.<currency>.amount(integer, required) A non-negative integer in cents representing how much to charge.shipping_options.shipping_rate_data.fixed_amount.currency_options.<currency>.tax_behavior(enum, recommended if calculating taxes) Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Possible enum values:exclusiveinclusiveunspecified
shipping_options.shipping_rate_data.metadata(object, optional) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.shipping_options.shipping_rate_data.tax_behavior(enum, recommended if calculating taxes) Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Possible enum values:exclusiveinclusiveunspecified
shipping_options.shipping_rate_data.tax_code(string, recommended if calculating taxes) A tax code ID. The Shipping tax code istxcd_92010001.shipping_options.shipping_rate_data.type(enum, required) The type of calculation to use on the shipping rate. Possible enum values:fixed_amountThe shipping rate is a fixed amount.
submit_type(enum, optional) Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button.submit_typecan only be specified on Checkout Sessions inpaymentorsubscriptionmode. If blank orauto,payis used. You can’t set this parameter ifui_modeiselements. Possible enum values:autopaywill used forpaymentmode sessions andsubscribewill be used forsubscriptionmode sessionsbookRecommended when offering bookings. Submit button includes a ‘Book’ labeldonateRecommended when accepting donations. Submit button includes a ‘Donate’ labelpaySubmit button includes a ‘Buy’ labelsubscribeSubmit button includes a ‘Subscribe’ label
subscription_data(object, optional) A subset of parameters to be passed to subscription creation for Checkout Sessions insubscriptionmode.subscription_data.application_fee_percent(float, optional) A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner’s Stripe account. To use an application fee percent, the request must be made on behalf of another account, using theStripe-Accountheader or an OAuth key. For more information, see the application fees documentation.subscription_data.billing_cycle_anchor(timestamp, optional) A future timestamp to anchor the subscription’s billing cycle for new subscriptions. You can’t set this parameter ifui_modeiselements.subscription_data.billing_mode(object, optional) Controls how prorations and invoices for subscriptions are calculated and orchestrated.subscription_data.billing_mode.type(enum, required) Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default isflexible. Possible enum values:classicCalculations for subscriptions and invoices are based on legacy defaults.flexibleSupports more flexible calculation and orchestration options for subscriptions and invoices.
subscription_data.billing_mode.flexible(object, optional) Configure behavior for flexible billing mode.subscription_data.billing_mode.flexible.proration_discounts(enum, optional) Controls how invoices and invoice items display proration amounts and discount amounts. Possible enum values:includedAmounts are net of discounts, and discount amounts are zero.itemizedAmounts are gross of discounts, and discount amounts are accurate.
subscription_data.default_tax_rates(array of strings, optional) The tax rates that will apply to any subscription item that does not havetax_ratesset. Invoices created will have theirdefault_tax_ratespopulated from the subscription.subscription_data.description(string, optional) The subscription’s description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in the customer portal.The maximum length is 500 characters.
subscription_data.invoice_settings(object, optional) All invoices will be billed using the specified settings.subscription_data.invoice_settings.issuer(object, optional) The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.subscription_data.invoice_settings.issuer.type(enum, required) Type of the account referenced in the request. Possible enum values:accountIndicates that the account being referenced is a connected account which is different from the account making the API request but related to it.selfIndicates that the account being referenced is the account making the API request.
subscription_data.invoice_settings.issuer.account(string, required only if type is account) The connected account being referenced whentypeisaccount.
subscription_data.metadata(object, optional) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.subscription_data.on_behalf_of(string, optional) The account on behalf of which to charge, for each of the subscription’s invoices.subscription_data.pending_invoice_item_interval(object, optional) Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.subscription_data.pending_invoice_item_interval.interval(enum, required) Specifies invoicing frequency. Eitherday,week,monthoryear. Possible enum values:daymonthweekyear
subscription_data.pending_invoice_item_interval.interval_count(integer, optional) The number of intervals between invoices. For example,interval=monthandinterval_count=3bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
subscription_data.proration_behavior(enum, optional) Determines how to handle prorations resulting from thebilling_cycle_anchor. If no value is passed, the default iscreate_prorations. Possible enum values:create_prorationsWill cause proration invoice items to be created when applicable.noneDisable creating prorations in current Checkout Session
subscription_data.transfer_data(object, optional) If specified, the funds from the subscription’s invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.subscription_data.transfer_data.destination(string, required) ID of an existing, connected Stripe account.subscription_data.transfer_data.amount_percent(float, optional) A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
subscription_data.trial_end(integer, optional) Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.subscription_data.trial_period_days(integer, optional) Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.subscription_data.trial_settings(object, optional) Settings related to subscription trials.subscription_data.trial_settings.end_behavior(object, required) Defines how the subscription should behave when the user’s free trial ends.subscription_data.trial_settings.end_behavior.missing_payment_method(enum, required) Indicates how the subscription should change when the trial ends if the user did not provide a payment method. Possible enum values:cancelCancel the subscription if a payment method is not attached when the trial ends.create_invoiceCreate an invoice when the trial ends, even if the user did not set up a payment method.pausePause the subscription if a payment method is not attached when the trial ends.
success_url(string, required conditionally) The URL to which Stripe should send customers when payment or setup is complete. This parameter is not allowed if ui_mode isembedded_pageorelements. If you’d like to use information from the successful Checkout Session on your page, read the guide on customizing your success page.tax_id_collection(object, optional) Controls tax ID collection during checkout.tax_id_collection.enabled(boolean, required) Enable tax ID collection during checkout. Defaults tofalse.tax_id_collection.required(enum, optional) Describes whether a tax ID is required during checkout. Defaults tonever. You can’t set this parameter ifui_modeiscustom. Possible enum values:if_supportedA tax ID will be required if collection is supported for the selected billing address country.neverTax ID collection is never required.
ui_mode(enum, optional) The UI mode of the Session. Defaults tohosted_page. Possible enum values:elementsThe Checkout Session is displayed using Checkout elements on your website.embedded_pageThe Checkout Session is displayed as an embedded form on your website.hosted_pageThe Checkout Session is displayed on a hosted page that customers get redirected to.
wallet_options(object, optional) Wallet-specific configuration.wallet_options.link(object, optional) contains details about the Link wallet options.wallet_options.link.display(enum, optional) Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is theautobehavior, and it is the default choice. Possible enum values:autoThe Checkout Session will automatically determine if Link is a supported payment option and display accordingly.neverThe Checkout Session will not display Link as a payment option.
curl
curl https://api.stripe.com/v1/checkout/sessions \
-u "<<YOUR_SECRET_KEY>>" \
--data-urlencode "success_url=https://example.com/success" \
-d "line_items[0][price]={{PRICE_ID}}" \
-d "line_items[0][quantity]=2" \
-d mode=paymentResponse ​
json
{
"id": "cs_test_a11YYufWQzNY63zpQ6QSNRQhkUpVph4WRmzW0zWJO2znZKdVujZ0N0S22u",
"object": "checkout.session",
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": 2198,
"amount_total": 2198,
"automatic_tax": {
"enabled": false,
"liability": null,
"status": null
},
"billing_address_collection": null,
"cancel_url": null,
"client_reference_id": null,
"consent": null,
"consent_collection": null,
"created": 1679600215,
"currency": "usd",
"custom_fields": [],
"custom_text": {
"shipping_address": null,
"submit": null
},
"customer": null,
"customer_creation": "if_required",
"customer_details": null,
"customer_email": null,
"expires_at": 1679686615,
"invoice": null,
"invoice_creation": {
"enabled": false,
"invoice_data": {
"account_tax_ids": null,
"custom_fields": null,
"description": null,
"footer": null,
"issuer": null,
"metadata": {},
"rendering_options": null
}
},
"livemode": false,
"locale": null,
"metadata": {},
"mode": "payment",
"payment_intent": null,
"payment_link": null,
"payment_method_collection": "always",
"payment_method_options": {},
"payment_method_types": [
"card"
],
"payment_status": "unpaid",
"phone_number_collection": {
"enabled": false
},
"recovered_from": null,
"setup_intent": null,
"shipping_address_collection": null,
"shipping_cost": null,
"shipping_details": null,
"shipping_options": [],
"status": "open",
"submit_type": null,
"subscription": null,
"success_url": "https://example.com/success",
"total_details": {
"amount_discount": 0,
"amount_shipping": 0,
"amount_tax": 0
},
"url": "https://checkout.stripe.com/c/pay/cs_test_a11YYufWQzNY63zpQ6QSNRQhkUpVph4WRmzW0zWJO2znZKdVujZ0N0S22u#fidkdWxOYHwnPyd1blpxYHZxWjA0SDdPUW5JbmFMck1wMmx9N2BLZjFEfGRUNWhqTmJ%2FM2F8bUA2SDRySkFdUV81T1BSV0YxcWJcTUJcYW5rSzN3dzBLPUE0TzRKTTxzNFBjPWZEX1NKSkxpNTVjRjN8VHE0YicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl"
}