The Checkout Session object
Attributes
id(string) Unique identifier for the object.object(string) String representing the object’s type. Objects of the same type share the same value.adaptive_pricing(object, nullable) Settings for price localization with Adaptive Pricing.adaptive_pricing.enabled(boolean) If enabled, Adaptive Pricing is available on eligible sessions.
after_expiration(object, nullable) When set, provides configuration for actions to take if this Checkout Session expires.after_expiration.recovery(object, nullable) When set, configuration used to recover the Checkout Session on expiry.after_expiration.recovery.allow_promotion_codes(boolean) Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults tofalseafter_expiration.recovery.enabled(boolean) Iftrue, a recovery url will be generated to recover this Checkout Session if it expires before a transaction is completed. It will be attached to the Checkout Session object upon expiration.after_expiration.recovery.expires_at(timestamp, nullable) The timestamp at which the recovery URL will expire.after_expiration.recovery.url(string, nullable) URL that creates a new Checkout Session when clicked that is a copy of this expired Checkout Session
allow_promotion_codes(boolean, nullable) Enables user redeemable promotion codes.amount_subtotal(integer, nullable) Total of all items before discounts or taxes are applied.amount_total(integer, nullable) Total of all items after discounts and taxes are applied.automatic_tax(object) Details on the state of automatic tax for the session, including the status of the latest tax calculation.automatic_tax.enabled(boolean) Indicates whether automatic tax is enabled for the sessionautomatic_tax.liability(object, nullable) 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.account(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The connected account being referenced whentypeisaccount.automatic_tax.liability.type(enum) Type of the account referenced. 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.provider(string, nullable) The tax provider powering automatic tax.automatic_tax.status(enum, nullable) The status of the most recent automated tax calculation for this session. Possible enum values:completeThe automatic tax calculation was successful.failedThe tax calculation failed, please try again later.requires_location_inputsThe location details supplied on the customer aren’t valid or don’t provide enough location information to accurately determine tax rates for the customer.
billing_address_collection(enum, nullable) Describes 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, nullable) Details on the state of branding settings for the session.branding_settings.background_color(string) A hex color value starting with#representing the background color for the Checkout Session.branding_settings.border_style(enum) The border style for the Checkout Session. Must be one ofrounded,rectangular, orpill. Possible enum values:pillrectangularrounded
branding_settings.button_color(string) A hex color value starting with#representing the button color for the Checkout Session.branding_settings.display_name(string) The display name shown on the Checkout Session.branding_settings.font_family(string) The font family for the Checkout Session. Must be one of the supported font families.branding_settings.icon(object, nullable) The icon for the Checkout Session. You cannot set bothlogoandicon.branding_settings.icon.file(string, nullable) The ID of a File upload representing the icon. Purpose must bebusiness_icon. Required iftypeisfileand disallowed otherwise.branding_settings.icon.type(enum) The type of image for the icon. Must be one offileorurl. Possible enum values:fileurl
branding_settings.icon.url(string, nullable) The URL of the image. Present whentypeisurl.
branding_settings.logo(object, nullable) The logo for the Checkout Session. You cannot set bothlogoandicon.branding_settings.logo.file(string, nullable) The ID of a File upload representing the logo. Purpose must bebusiness_logo. Required iftypeisfileand disallowed otherwise.branding_settings.logo.type(enum) The type of image for the logo. Must be one offileorurl. Possible enum values:fileurl
branding_settings.logo.url(string, nullable) The URL of the image. Present whentypeisurl.
cancel_url(string, nullable) 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.client_reference_id(string, nullable) 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.client_secret(string, nullable) The client secret of your Checkout Session. Applies to Checkout Sessions withui_mode: embedded_pageorui_mode: elements. Forui_mode: embedded_page, the client secret is to be used when initializing Stripe.js embedded checkout. Forui_mode: elements, use the client secret with initCheckout on your front end.collected_information(object, nullable) Information about the customer collected within the Checkout Session.collected_information.business_name(string, nullable) Customer’s business name for this Checkout Sessioncollected_information.individual_name(string, nullable) Customer’s individual name for this Checkout Sessioncollected_information.shipping_details(object, nullable) Shipping information for this Checkout Session.collected_information.shipping_details.address(object) Customer address.collected_information.shipping_details.address.city(string, nullable) City, district, suburb, town, or village.collected_information.shipping_details.address.country(string, nullable) Two-letter country code (ISO 3166-1 alpha-2).collected_information.shipping_details.address.line1(string, nullable) Address line 1, such as the street, PO Box, or company name.collected_information.shipping_details.address.line2(string, nullable) Address line 2, such as the apartment, suite, unit, or building.collected_information.shipping_details.address.postal_code(string, nullable) ZIP or postal code.collected_information.shipping_details.address.state(string, nullable) State, county, province, or region (ISO 3166-2).
collected_information.shipping_details.name(string) Customer name.
consent(object, nullable) Results ofconsent_collectionfor this session.consent.promotions(enum, nullable) Ifopt_in, the customer consents to receiving promotional communications from the merchant about this Checkout Session. Possible enum values:opt_inopt_out
consent.terms_of_service(enum, nullable) Ifaccepted, the customer in this Checkout Session has agreed to the merchant’s terms of service. Possible enum values:acceptedThe customer has accepted the specified terms of service agreement.
consent_collection(object, nullable) When set, provides configuration for the Checkout Session to gather active consent from customers.consent_collection.payment_method_reuse_agreement(object, nullable) If set tohidden, it will hide legal text related to the reuse of a payment method.consent_collection.payment_method_reuse_agreement.position(enum) 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 to
hidden, the payment method reuse agreement text will always be hidden in the UI. Possible enum values:autohidden
consent_collection.promotions(enum, nullable) 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:autonone
consent_collection.terms_of_service(enum, nullable) If set torequired, it requires customers to accept the terms of service before being able to pay. Possible enum values:nonerequired
created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.currency(enum, nullable) Three-letter ISO currency code, in lowercase. Must be a supported currency.currency_conversion(object, nullable) Currency conversion details for Adaptive Pricing sessions created before 2025-03-31.currency_conversion.amount_subtotal(integer) Total of all items in source currency before discounts or taxes are applied.currency_conversion.amount_total(integer) Total of all items in source currency after discounts and taxes are applied.currency_conversion.fx_rate(decimal string) Exchange rate used to convert source currency amounts to customer currency amountscurrency_conversion.source_currency(string) Creation currency of the CheckoutSession before localization
custom_fields(array of objects) 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.dropdown(object, nullable) Configuration fortype=dropdownfields.custom_fields.dropdown.default_value(string, nullable) The value that pre-fills on the payment page.custom_fields.dropdown.options(array of objects) The options available for the customer to select. Up to 200 options allowed.custom_fields.dropdown.options.label(string) The label for the option, displayed to the customer. Up to 100 characters.custom_fields.dropdown.options.value(string) 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.
custom_fields.dropdown.value(string, nullable) The option selected by the customer. This will be thevaluefor the option.
custom_fields.key(string) 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.custom_fields.label(object) The label for the field, displayed to the customer.custom_fields.label.custom(string, nullable) Custom text for the label, displayed to the customer. Up to 50 characters.custom_fields.label.type(enum) The type of the label. Possible enum values:customSet a custom label for the field.
custom_fields.numeric(object, nullable) Configuration fortype=numericfields.custom_fields.numeric.default_value(string, nullable) The value that pre-fills the field on the payment page.custom_fields.numeric.maximum_length(integer, nullable) The maximum character length constraint for the customer’s input.custom_fields.numeric.minimum_length(integer, nullable) The minimum character length requirement for the customer’s input.custom_fields.numeric.value(string, nullable) The value entered by the customer, containing only digits.
custom_fields.optional(boolean) Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse.custom_fields.text(object, nullable) Configuration fortype=textfields.custom_fields.text.default_value(string, nullable) The value that pre-fills the field on the payment page.custom_fields.text.maximum_length(integer, nullable) The maximum character length constraint for the customer’s input.custom_fields.text.minimum_length(integer, nullable) The minimum character length requirement for the customer’s input.custom_fields.text.value(string, nullable) The value entered by the customer.
custom_fields.type(enum) 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_text(object) Display additional text for your customers using custom text. You can’t set this parameter ifui_modeiscustom.custom_text.after_submit(object, nullable) Custom text that should be displayed after the payment confirmation button.custom_text.after_submit.message(string) Text can be up to 1200 characters in length.
custom_text.shipping_address(object, nullable) Custom text that should be displayed alongside shipping address collection.custom_text.shipping_address.message(string) Text can be up to 1200 characters in length.
custom_text.submit(object, nullable) Custom text that should be displayed alongside the payment confirmation button.custom_text.submit.message(string) Text can be up to 1200 characters in length.
custom_text.terms_of_service_acceptance(object, nullable) Custom text that should be displayed in place of the default terms of service agreement text.custom_text.terms_of_service_acceptance.message(string) Text can be up to 1200 characters in length.
customer(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the customer for this Session. For Checkout Sessions insubscriptionmode or Checkout Sessions withcustomer_creationset asalwaysinpaymentmode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.customer_account(string, nullable) The ID of the account for this Session.customer_creation(enum, nullable) Configure whether a Checkout Session creates a Customer when the Checkout Session completes. 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_details(object, nullable) The customer details including the customer’s tax exempt status and the customer’s tax IDs. Customer’s address details are not present on Sessions insetupmode.customer_details.address(object, nullable) The customer’s address after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.customer_details.address.city(string, nullable) City, district, suburb, town, or village.customer_details.address.country(string, nullable) Two-letter country code (ISO 3166-1 alpha-2).customer_details.address.line1(string, nullable) Address line 1, such as the street, PO Box, or company name.customer_details.address.line2(string, nullable) Address line 2, such as the apartment, suite, unit, or building.customer_details.address.postal_code(string, nullable) ZIP or postal code.customer_details.address.state(string, nullable) State, county, province, or region (ISO 3166-2).
customer_details.business_name(string, nullable) The customer’s business name after a completed Checkout Session.The maximum length is 150 characters.
customer_details.email(string, nullable) The email associated with the Customer, if one exists, on the Checkout Session after a completed Checkout Session or at time of session expiry. Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form.customer_details.individual_name(string, nullable) The customer’s individual name after a completed Checkout Session.The maximum length is 150 characters.
customer_details.name(string, nullable) The customer’s name after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.customer_details.phone(string, nullable) The customer’s phone number after a completed Checkout Session.customer_details.tax_exempt(enum, nullable) The customer’s tax exempt status after a completed Checkout Session. Possible enum values:exemptnonereverse
customer_details.tax_ids(array of objects, nullable) The customer’s tax IDs after a completed Checkout Session.customer_details.tax_ids.type(enum) The type of the tax ID, one ofad_nrt,ar_cuit,eu_vat,bo_tin,br_cnpj,br_cpf,cn_tin,co_nit,cr_tin,do_rcn,ec_ruc,eu_oss_vat,hr_oib,pe_ruc,ro_tin,rs_pib,sv_nit,uy_ruc,ve_rif,vn_tin,gb_vat,nz_gst,au_abn,au_arn,in_gst,no_vat,no_voec,za_vat,ch_vat,mx_rfc,sg_uen,ru_inn,ru_kpp,ca_bn,hk_br,es_cif,pl_nip,it_cf,fo_vat,gi_tin,py_ruc,tw_vat,th_vat,jp_cn,jp_rn,jp_trn,li_uid,li_vat,lk_vat,my_itn,us_ein,kr_brn,ca_qst,ca_gst_hst,ca_pst_bc,ca_pst_mb,ca_pst_sk,my_sst,sg_gst,ae_trn,cl_tin,sa_vat,id_npwp,my_frp,il_vat,ge_vat,ua_vat,is_vat,bg_uic,hu_tin,si_tin,ke_pin,tr_tin,eg_tin,ph_tin,al_tin,bh_vat,kz_bin,ng_tin,om_vat,de_stn,ch_uid,tz_vat,uz_vat,uz_tin,md_vat,ma_vat,by_tin,ao_tin,bs_tin,bb_tin,cd_nif,mr_nif,me_pib,zw_tin,ba_tin,gn_nif,mk_vat,sr_fin,sn_ninea,am_tin,np_pan,tj_tin,ug_tin,zm_tin,kh_tin,aw_tin,az_tin,bd_bin,bj_ifu,et_tin,kg_tin,la_tin,cm_niu,cv_nif,bf_ifu, orunknownPossible enum values:ad_nrtae_trnal_tinam_tinao_tinar_cuitau_abnau_arnaw_tinaz_tinba_tinbb_tinbd_binbf_ifubg_uicbh_vatbj_ifubo_tinbr_cnpjbr_cpfbs_tinby_tinca_bnca_gst_hstca_pst_bcca_pst_mbca_pst_skca_qstcd_nifch_uidch_vatcl_tincm_niucn_tinco_nitcr_tincv_nifde_stndo_rcnec_ruceg_tines_cifet_tineu_oss_vateu_vatfo_vatgb_vatge_vatgi_tingn_nifhk_brhr_oibhu_tinid_npwpil_vatin_gstis_vatit_cfjp_cnjp_rnjp_trnke_pinkg_tinkh_tinkr_brnkz_binla_tinli_uidli_vatlk_vatma_vatmd_vatme_pibmk_vatmr_nifmx_rfcmy_frpmy_itnmy_sstng_tinno_vatno_voecnp_pannz_gstom_vatpe_rucph_tinpl_nippy_rucro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsn_nineasr_finsv_nitth_vattj_tintr_tintw_vattz_vatua_vatug_tinunknownus_einuy_rucuz_tinuz_vatve_rifvn_tinza_vatzm_tinzw_tin
customer_details.tax_ids.value(string, nullable) The value of the tax ID.
customer_email(string, nullable) 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 the payment flow is complete, use thecustomerattribute.discounts(array of objects, nullable) List of coupons and promotion codes attached to the Checkout Session.discounts.coupon(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) Coupon attached to the Checkout Session.discounts.promotion_code(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) Promotion code attached to the Checkout Session.
excluded_payment_method_types(array of strings, nullable) 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) The timestamp at which the Checkout Session will expire.integration_identifier(string, nullable) The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier.invoice(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) ID of the invoice created by the Checkout Session, if it exists.invoice_creation(object, nullable) Details on the state of invoice creation for the Checkout Session.invoice_creation.enabled(boolean) Indicates whether invoice creation is enabled for the Checkout Session.invoice_creation.invoice_data(object) Parameters passed when creating invoices for payment-mode Checkout Sessions.invoice_creation.invoice_data.account_tax_ids(array of strings, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The account tax IDs associated with the invoice.invoice_creation.invoice_data.custom_fields(array of objects, nullable) Custom fields displayed on the invoice.invoice_creation.invoice_data.custom_fields.name(string) The name of the custom field.invoice_creation.invoice_data.custom_fields.value(string) The value of the custom field.
invoice_creation.invoice_data.description(string, nullable) An arbitrary string attached to the object. Often useful for displaying to users.invoice_creation.invoice_data.footer(string, nullable) Footer displayed on the invoice.invoice_creation.invoice_data.issuer(object, nullable) 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.account(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The connected account being referenced whentypeisaccount.invoice_creation.invoice_data.issuer.type(enum) Type of the account referenced. 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.metadata(object, nullable) 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.invoice_creation.invoice_data.rendering_options(object, nullable) Options for invoice PDF rendering.invoice_creation.invoice_data.rendering_options.amount_tax_display(string, nullable) How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.invoice_creation.invoice_data.rendering_options.template(string, nullable) ID of the invoice rendering template to be used for the generated invoice.
line_items(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The line items purchased by the customer.line_items.object(string) String representing the object’s type. Objects of the same type share the same value. Always has the valuelist.line_items.data(array of objects) Details about each object.line_items.data.id(string) Unique identifier for the object.line_items.data.object(string) String representing the object’s type. Objects of the same type share the same value.line_items.data.amount_discount(integer) Total discount amount applied. If no discounts were applied, defaults to 0.line_items.data.amount_subtotal(integer) Total before any discounts or taxes are applied.line_items.data.amount_tax(integer) Total tax amount applied. If no tax was applied, defaults to 0.line_items.data.amount_total(integer) Total after discounts and taxes.line_items.data.currency(enum) Three-letter ISO currency code, in lowercase. Must be a supported currency.line_items.data.description(string, nullable) An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.line_items.data.discounts(array of objects, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The discounts applied to the line item.line_items.data.discounts.amount(integer) The amount discounted.line_items.data.discounts.discount(object) The discount applied.line_items.data.discounts.discount.id(string) The ID of the discount object. Discounts cannot be fetched by ID. Useexpand[]=discountsin API calls to expand discount IDs in an array.line_items.data.discounts.discount.object(string) String representing the object’s type. Objects of the same type share the same value.line_items.data.discounts.discount.checkout_session(string, nullable) The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.line_items.data.discounts.discount.customer(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the customer associated with this discount.line_items.data.discounts.discount.customer_account(string, nullable) The ID of the account representing the customer associated with this discount.line_items.data.discounts.discount.end(timestamp, nullable) If the coupon has a duration ofrepeating, the date that this discount will end. If the coupon has a duration ofonceorforever, this attribute will be null.line_items.data.discounts.discount.invoice(string, nullable) The invoice that the discount’s coupon was applied to, if it was applied directly to a particular invoice.line_items.data.discounts.discount.invoice_item(string, nullable) The invoice itemid(or invoice line itemidfor invoice line items of type=‘subscription’) that the discount’s coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.line_items.data.discounts.discount.promotion_code(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The promotion code applied to create this discount.line_items.data.discounts.discount.source(object) The source of the discount.line_items.data.discounts.discount.source.coupon(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The coupon that was redeemed to create this discount.line_items.data.discounts.discount.source.type(enum) The source type of the discount. Possible enum values:couponCoupon source type
line_items.data.discounts.discount.start(timestamp) Date that the coupon was applied.line_items.data.discounts.discount.subscription(string, nullable) The subscription that this coupon is applied to, if it is applied to a particular subscription.line_items.data.discounts.discount.subscription_item(string, nullable) The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
line_items.data.metadata(object, nullable) 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.line_items.data.price(object, nullable) The price used to generate the line item.line_items.data.price.id(string) Unique identifier for the object.line_items.data.price.object(string) String representing the object’s type. Objects of the same type share the same value.line_items.data.price.active(boolean) Whether the price can be used for new purchases.line_items.data.price.billing_scheme(enum) Describes how to compute the price per period. Eitherper_unitortiered.per_unitindicates that the fixed amount (specified inunit_amountorunit_amount_decimal) will be charged per unit inquantity(for prices withusage_type=licensed), or per unit of total usage (for prices withusage_type=metered).tieredindicates that the unit pricing will be computed using a tiering strategy as defined using thetiersandtiers_modeattributes. Possible enum values:per_unittiered
line_items.data.price.created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.line_items.data.price.currency(enum) Three-letter ISO currency code, in lowercase. Must be a supported currency.line_items.data.price.currency_options(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) Prices defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.line_items.data.price.currency_options.<currency>.custom_unit_amount(object, nullable) When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.line_items.data.price.currency_options.<currency>.custom_unit_amount.maximum(integer, nullable) The maximum unit amount the customer can specify for this item.line_items.data.price.currency_options.<currency>.custom_unit_amount.minimum(integer, nullable) The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.line_items.data.price.currency_options.<currency>.custom_unit_amount.preset(integer, nullable) The starting unit amount which can be updated by the customer.
line_items.data.price.currency_options.<currency>.tax_behavior(enum, nullable) 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.data.price.currency_options.<currency>.tiers(array of objects, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) Each element represents a pricing tier. This parameter requiresbilling_schemeto be set totiered. See also the documentation forbilling_scheme.line_items.data.price.currency_options.<currency>.tiers.flat_amount(integer, nullable) Price for the entire tier.line_items.data.price.currency_options.<currency>.tiers.flat_amount_decimal(decimal string, nullable) Same asflat_amount, but contains a decimal value with at most 12 decimal places.line_items.data.price.currency_options.<currency>.tiers.unit_amount(integer, nullable) Per unit price for units relevant to the tier.line_items.data.price.currency_options.<currency>.tiers.unit_amount_decimal(decimal string, nullable) Same asunit_amount, but contains a decimal value with at most 12 decimal places.line_items.data.price.currency_options.<currency>.tiers.up_to(integer, nullable) Up to and including to this quantity will be contained in the tier.
line_items.data.price.currency_options.<currency>.unit_amount(integer, nullable) The unit amount in the smallest currency unit to be charged, represented as a whole integer if possible. Only set ifbilling_scheme=per_unit.line_items.data.price.currency_options.<currency>.unit_amount_decimal(decimal string, nullable) The unit amount in the smallest currency unit to be charged, represented as a decimal string with at most 12 decimal places. Only set ifbilling_scheme=per_unit.
line_items.data.price.custom_unit_amount(object, nullable) When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.line_items.data.price.custom_unit_amount.maximum(integer, nullable) The maximum unit amount the customer can specify for this item.line_items.data.price.custom_unit_amount.minimum(integer, nullable) The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.line_items.data.price.custom_unit_amount.preset(integer, nullable) The starting unit amount which can be updated by the customer.
line_items.data.price.livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.line_items.data.price.lookup_key(string, nullable) A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.line_items.data.price.metadata(object) 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.line_items.data.price.nickname(string, nullable) A brief description of the price, hidden from customers.line_items.data.price.product(string, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the product this price is associated with.line_items.data.price.recurring(object, nullable) The recurring components of a price such asintervalandusage_type.line_items.data.price.recurring.interval(enum) The frequency at which a subscription is billed. One ofday,week,monthoryear.line_items.data.price.recurring.interval_count(integer) The number of intervals (specified in theintervalattribute) between subscription billings. For example,interval=monthandinterval_count=3bills every 3 months.line_items.data.price.recurring.meter(string, nullable) The meter tracking the usage of a metered priceline_items.data.price.recurring.usage_type(enum) Configures how the quantity per period should be determined. Can be eithermeteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed.
line_items.data.price.tax_behavior(enum, nullable) 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.data.price.tiers(array of objects, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) Each element represents a pricing tier. This parameter requiresbilling_schemeto be set totiered. See also the documentation forbilling_scheme.line_items.data.price.tiers.flat_amount(integer, nullable) Price for the entire tier.line_items.data.price.tiers.flat_amount_decimal(decimal string, nullable) Same asflat_amount, but contains a decimal value with at most 12 decimal places.line_items.data.price.tiers.unit_amount(integer, nullable) Per unit price for units relevant to the tier.line_items.data.price.tiers.unit_amount_decimal(decimal string, nullable) Same asunit_amount, but contains a decimal value with at most 12 decimal places.line_items.data.price.tiers.up_to(integer, nullable) Up to and including to this quantity will be contained in the tier.
line_items.data.price.tiers_mode(enum, nullable) Defines if the tiering price should begraduatedorvolumebased. Involume-based tiering, the maximum quantity within a period determines the per unit price. Ingraduatedtiering, pricing can change as the quantity grows. Possible enum values:graduatedvolume
line_items.data.price.transform_quantity(object, nullable) Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined withtiers.line_items.data.price.transform_quantity.divide_by(integer) Divide usage by this number.line_items.data.price.transform_quantity.round(enum) After division, either round the resultupordown.
line_items.data.price.type(enum) One ofone_timeorrecurringdepending on whether the price is for a one-time purchase or a recurring (subscription) purchase. Possible enum values:one_timerecurring
line_items.data.price.unit_amount(integer, nullable) The unit amount in the smallest currency unit to be charged, represented as a whole integer if possible. Only set ifbilling_scheme=per_unit.line_items.data.price.unit_amount_decimal(decimal string, nullable) The unit amount in the smallest currency unit to be charged, represented as a decimal string with at most 12 decimal places. Only set ifbilling_scheme=per_unit.
line_items.data.quantity(integer, nullable) The quantity of products being purchased.line_items.data.taxes(array of objects, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The taxes applied to the line item.line_items.data.taxes.amount(integer) Amount of tax applied for this rate.line_items.data.taxes.rate(object) The tax rate applied.line_items.data.taxes.rate.id(string) Unique identifier for the object.line_items.data.taxes.rate.object(string) String representing the object’s type. Objects of the same type share the same value.line_items.data.taxes.rate.active(boolean) Defaults totrue. When set tofalse, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.line_items.data.taxes.rate.country(string, nullable) Two-letter country code (ISO 3166-1 alpha-2).line_items.data.taxes.rate.created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.line_items.data.taxes.rate.description(string, nullable) An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.line_items.data.taxes.rate.display_name(string) The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.line_items.data.taxes.rate.effective_percentage(float, nullable) Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.line_items.data.taxes.rate.flat_amount(object, nullable) The amount of the tax rate when therate_typeisflat_amount. Tax rates withrate_typepercentagecan vary based on the transaction, resulting in this field beingnull. This field exposes the amount and currency of the flat tax rate.line_items.data.taxes.rate.flat_amount.amount(integer) Amount of the tax when therate_typeisflat_amount. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).line_items.data.taxes.rate.flat_amount.currency(string) Three-letter ISO currency code, in lowercase.
line_items.data.taxes.rate.inclusive(boolean) This specifies if the tax rate is inclusive or exclusive.line_items.data.taxes.rate.jurisdiction(string, nullable) The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.line_items.data.taxes.rate.jurisdiction_level(enum, nullable) The level of the jurisdiction that imposes this tax rate. Will benullfor manually defined tax rates. Possible enum values:citycountrycountydistrictmultiplestate
line_items.data.taxes.rate.livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.line_items.data.taxes.rate.metadata(object, nullable) 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.line_items.data.taxes.rate.percentage(float) Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.line_items.data.taxes.rate.rate_type(enum, nullable) Indicates the type of tax rate applied to the taxable amount. This value can benullwhen no tax applies to the location. This field is only present for TaxRates created by Stripe Tax. Possible enum values:flat_amountA fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.percentageA tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
line_items.data.taxes.rate.state(string, nullable) ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.line_items.data.taxes.rate.tax_type(enum, nullable) The high-level tax type, such asvatorsales_tax. Possible enum values:admissions_taxAdmissions Taxamusement_taxAmusement Taxattendance_taxAttendance Taxcommunications_taxCommunications Taxentertainment_taxEntertainment Taxgross_receipts_taxGross Receipts TaxgstGoods and Services Taxhospitality_taxHospitality TaxhstHarmonized Sales TaxigstIntegrated Goods and Services TaxjctJapanese Consumption Taxlease_taxChicago Lease Taxluxury_taxLuxury TaxpstProvincial Sales TaxqstQuebec Sales Taxresort_taxResort Taxretail_delivery_feeRetail Delivery FeerstRetail Sales Taxsales_taxSales Taxservice_taxService Taxtourism_taxTourism TaxvatValue-Added Tax
line_items.data.taxes.taxability_reason(enum, nullable) The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. Possible enum values:customer_exemptNo tax is applied as the customer is exempt from tax.not_collectingNo tax is collected either because you are not registered to collect tax in this jurisdiction, or because the non-taxable product tax code (txcd_00000000) was used.not_subject_to_taxNo tax is imposed on this transaction.not_supportedNo tax applied. Stripe doesn’t support this jurisdiction, territory, or product.portion_product_exemptA portion of the price is exempt from tax.portion_reduced_ratedA portion of the price is taxed at a reduced rate.portion_standard_ratedA portion of the price is taxed at the standard rate.product_exemptThe product or service is nontaxable or exempt from tax.product_exempt_holidayThe product or service is not taxed due to a sales tax holiday.proportionally_ratedThe shipping cost tax rate is calculated as a weighted average of the other line items’ rates, weighted by their amounts.reduced_ratedTaxed at a reduced rate.reverse_chargeNo tax is applied as it is the responsibility of the buyer to account for tax in this case.standard_ratedTaxed at the standard rate.taxable_basis_reducedA reduced amount of the price is subject to tax.zero_ratedThe transaction is taxed at a special rate of 0% or the transaction is exempt (but these exempt transactions still let you deduct the “input VAT” paid on your business purchases).
line_items.data.taxes.taxable_amount(integer, nullable) The amount on which tax is calculated, in the smallest currency unit.
line_items.has_more(boolean) True if this list has another page of items after this one that can be fetched.line_items.url(string) The URL where this list can be accessed.
livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.locale(enum, nullable) 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, nullable) Settings for Managed Payments for this Checkout Session and resulting PaymentIntents, Invoices, and Subscriptions.managed_payments.enabled(boolean) Indicates whether Managed Payments is enabled for this session.
metadata(object, nullable) 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.mode(enum) The mode of the Checkout Session. 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, nullable) Details on the state of name collection for the session.name_collection.business(object, nullable) The settings applied for collecting a business’s name.name_collection.business.enabled(boolean) Indicates whether business name collection is enabled for the sessionname_collection.business.optional(boolean) Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse.
name_collection.individual(object, nullable) The settings applied for collecting an individual’s name.name_collection.individual.enabled(boolean) Indicates whether individual name collection is enabled for the sessionname_collection.individual.optional(boolean) Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse.
optional_items(array of objects, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The optional items presented to the customer at checkout.origin_context(enum, nullable) Where the user is coming from. This informs the optimizations that are applied to the session. Possible enum values:mobile_appThe Checkout Session originates from a mobile app.webThe Checkout Session originates from a web page.
payment_intent(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the PaymentIntent for Checkout Sessions inpaymentmode. You can’t confirm or cancel the PaymentIntent for a Checkout Session. To cancel, expire the Checkout Session instead.payment_link(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the Payment Link that created this Session.payment_method_collection(enum, nullable) Configure whether a Checkout Session should collect a payment method. Defaults toalways. 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_details(object, nullable) Information about the payment method configuration used for this Checkout session if using dynamic payment methods.payment_method_configuration_details.id(string) ID of the payment method configuration used.payment_method_configuration_details.parent(string, nullable) ID of the parent payment method configuration used.
payment_method_options(object, nullable) Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.payment_method_options.acss_debit(object, nullable) If the Checkout Session’s payment_method_types includesacss_debit, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.acss_debit.currency(enum, nullable) Currency supported by the bank account. Returned when the Session is insetupmode. Possible enum values:cadCanadian dollarsusdUS dollars
payment_method_options.acss_debit.mandate_options(object, nullable) Additional fields for Mandate creationpayment_method_options.acss_debit.mandate_options.custom_mandate_url(string, nullable) A URL for custom mandate textpayment_method_options.acss_debit.mandate_options.default_for(array of enums, nullable) List of Stripe products where this mandate can be selected automatically. Returned when the Session is 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, nullable) Description of the interval. Only required if the ‘payment_schedule’ parameter is ‘interval’ or ‘combined’.payment_method_options.acss_debit.mandate_options.payment_schedule(enum, nullable) 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, nullable) 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, nullable) 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, nullable) 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, nullable) Bank account verification method. The default value isautomatic. Possible enum values:automaticInstant verification with fallback to microdeposits.instantInstant verification.microdepositsVerification using microdeposits.
payment_method_options.affirm(object, nullable) If the Checkout Session’s payment_method_types includesaffirm, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.affirm.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesafterpay_clearpay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.afterpay_clearpay.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesalipay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.alipay.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesalma, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.alma.capture_method(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesamazon_pay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.amazon_pay.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesau_becs_debit, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.au_becs_debit.setup_future_usage(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesbacs_debit, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.bacs_debit.mandate_options(object, nullable) Additional fields for Mandate creationpayment_method_options.bacs_debit.mandate_options.reference_prefix(string, nullable) 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’.
payment_method_options.bacs_debit.setup_future_usage(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesbancontact, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.bancontact.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesbillie, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.billie.capture_method(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesboleto, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.boleto.expires_after_days(integer) 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 voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.payment_method_options.boleto.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includescard, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.card.capture_method(enum, nullable) 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, nullable) Additional fields for Installments configurationpayment_method_options.card.installments.enabled(boolean, nullable) Indicates if installments are enabled
payment_method_options.card.request_extended_authorization(enum, nullable) 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, nullable) 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, nullable) 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, nullable) 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) 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, nullable) 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, nullable) 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_expressdiscover_global_networkmastercardvisa
payment_method_options.card.setup_future_usage(enum, nullable) 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.statement_descriptor_suffix_kana(string, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includescashapp, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.cashapp.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includescustomer_balance, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.customer_balance.bank_transfer(object, nullable) Configuration for the bank transfer funding type, if thefunding_typeis set tobank_transfer.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer(object, nullable) Configuration for eu_bank_transferpayment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country(enum) The desired country code of the bank account information. Permitted values include:DE,FR,IE, orNL. Possible enum values:BEDEESFRIENL
payment_method_options.customer_balance.bank_transfer.requested_address_types(array of enums, nullable) 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.bank_transfer.type(enum, nullable) The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include:eu_bank_transfer,gb_bank_transfer,jp_bank_transfer,mx_bank_transfer, orus_bank_transfer. Possible enum values:eu_bank_transferA bank transfer of type eu_bank_transfergb_bank_transferA bank transfer of type gb_bank_transferjp_bank_transferA bank transfer of type jp_bank_transfermx_bank_transferA bank transfer of type mx_bank_transferus_bank_transferA bank transfer of type us_bank_transfer
payment_method_options.customer_balance.funding_type(enum, nullable) 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, nullable) 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.eps(object, nullable) If the Checkout Session’s payment_method_types includeseps, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.eps.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesfpx, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.fpx.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesgiropay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.giropay.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesgrabpay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.grabpay.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesideal, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.ideal.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includeskakao_pay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.kakao_pay.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesklarna, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.klarna.capture_method(enum, nullable) 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, nullable) 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.konbini(object, nullable) If the Checkout Session’s payment_method_types includeskonbini, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.konbini.expires_after_days(integer, nullable) 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.payment_method_options.konbini.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includeskr_card, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.kr_card.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includeslink, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.link.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesmobilepay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.mobilepay.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesmultibanco, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.multibanco.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesnaver_pay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.naver_pay.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesoxxo, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.oxxo.expires_after_days(integer) The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesp24, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.p24.setup_future_usage(enum, nullable) 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.payco(object, nullable) If the Checkout Session’s payment_method_types includespayco, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.payco.capture_method(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includespaynow, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.paynow.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includespaypal, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.paypal.capture_method(enum, nullable) 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(string, nullable) Preferred locale of the PayPal checkout page that the customer is redirected to.payment_method_options.paypal.reference(string, nullable) 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.payment_method_options.paypal.setup_future_usage(enum, nullable) 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.payto(object, nullable) If the Checkout Session’s payment_method_types includespayto, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.payto.mandate_options(object, nullable) Additional fields for Mandate creationpayment_method_options.payto.mandate_options.amount(integer, nullable) Amount that will be collected. It is required whenamount_typeisfixed.payment_method_options.payto.mandate_options.amount_type(enum, nullable) 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, nullable) 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, nullable) 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, nullable) 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, nullable) 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, nullable) Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
payment_method_options.payto.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includespix, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.pix.amount_includes_iof(enum, nullable) Determines if the amount includes the IOF tax. 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, nullable) The number of seconds after which Pix payment will expire.payment_method_options.pix.mandate_options(object, nullable) Additional fields for mandate creation.payment_method_options.pix.mandate_options.amount(integer, nullable) Amount to be charged for future payments.payment_method_options.pix.mandate_options.amount_includes_iof(enum, nullable) Determines if the amount includes the IOF tax. 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, nullable) Type of amount. Possible enum values:fixedThe exact amount for future payments.maximumThe maximum amount for future payments.
payment_method_options.pix.mandate_options.currency(enum, nullable) Three-letter ISO currency code, in lowercase.payment_method_options.pix.mandate_options.end_date(string, nullable) Date when the mandate expires and no further payments will be charged, inYYYY-MM-DD.payment_method_options.pix.mandate_options.payment_schedule(enum, nullable) Schedule at which the future payments will be charged. 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, nullable) Subscription name displayed to buyers in their bank app.payment_method_options.pix.mandate_options.start_date(string, nullable) Start date of the mandate, inYYYY-MM-DD.
payment_method_options.pix.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesrevolut_pay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.revolut_pay.capture_method(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includessamsung_pay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.samsung_pay.capture_method(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includessatispay, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.satispay.capture_method(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includessepa_debit, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.sepa_debit.mandate_options(object, nullable) Additional fields for Mandate creationpayment_method_options.sepa_debit.mandate_options.reference_prefix(string, nullable) 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’.
payment_method_options.sepa_debit.setup_future_usage(enum, nullable) 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, nullable) 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, nullable) If the Checkout Session’s payment_method_types includessofort, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.sofort.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesswish, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.swish.reference(string, nullable) The order reference that will be displayed to customers in the Swish application. Defaults to theidof the Payment Intent.
payment_method_options.twint(object, nullable) If the Checkout Session’s payment_method_types includestwint, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.twint.setup_future_usage(enum, nullable) 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, nullable) If the Checkout Session’s payment_method_types includesupi, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.upi.mandate_options(object, nullable) Additional fields for Mandate creationpayment_method_options.upi.mandate_options.amount(integer, nullable) Amount to be charged for future payments.payment_method_options.upi.mandate_options.amount_type(enum, nullable) 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, nullable) 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, nullable) End date of the mandate or subscription.
payment_method_options.upi.setup_future_usage(enum, nullable) 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(object, nullable) If the Checkout Session’s payment_method_types includesus_bank_account, this hash contains the configurations that will be applied to each payment attempt of that type.payment_method_options.us_bank_account.financial_connections(object, nullable) Additional fields for Financial Connections Session creationpayment_method_options.us_bank_account.financial_connections.filters(object, nullable) Filter the list of accounts that are allowed to be linked.payment_method_options.us_bank_account.financial_connections.filters.account_subcategories(array of enums, nullable) The account subcategories to use to filter for possible accounts to link. Valid subcategories arecheckingandsavings. Possible enum values:checkingBank account subcategory is checkingsavingsBank account subcategory is savings
payment_method_options.us_bank_account.financial_connections.permissions(array of enums, nullable) The list of permissions to request. Thepayment_methodpermission must be included. Possible enum values:balancesAllows accessing balance data from the account.ownershipAllows accessing ownership data from the account.payment_methodAllows the creation of a payment method from the account.transactionsAllows accessing transactions data from the account.
payment_method_options.us_bank_account.financial_connections.prefetch(array of enums, nullable) Data features requested to be retrieved 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.financial_connections.return_url(string, nullable) For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
payment_method_options.us_bank_account.setup_future_usage(enum, nullable) 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, nullable) 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, nullable) Bank account verification method. The default value isautomatic. Possible enum values:automaticInstant verification with fallback to microdeposits.instantInstant verification only.
payment_method_types(array of strings) A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept.payment_status(enum) The payment status of the Checkout Session, one ofpaid,unpaid, orno_payment_required. You can use this value to decide when to fulfill your customer’s order. Possible enum values:no_payment_requiredThe payment is delayed to a future date, or the Checkout Session is insetupmode and doesn’t require a payment at this time.paidThe payment funds are available in your account.unpaidThe payment funds are not yet available in your account.
permissions(object, nullable) This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.For specific permissions, please refer to their dedicated subsections, such as
permissions.update_shipping_details.permissions.update_shipping_details(enum, nullable) 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_onlyserver_only
phone_number_collection(object, nullable) Details on the state of phone number collection for the session.phone_number_collection.enabled(boolean) Indicates whether phone number collection is enabled for the session
presentment_details(object, nullable) A hash containing information about the currency presentation to the customer, including the displayed currency and amount used for conversion from the integration currency.presentment_details.presentment_amount(integer) Amount intended to be collected by this payment, denominated inpresentment_currency.presentment_details.presentment_currency(string) Currency presented to the customer during payment.
recovered_from(string, nullable) The ID of the original expired Checkout Session that triggered the recovery flow.redirect_on_completion(enum, nullable) 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, nullable) Applies to Checkout Sessions withui_mode: embedded_pageorui_mode: elements. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method’s app or site.saved_payment_method_options(object, nullable) Controls saved payment method settings for the session. Only available inpaymentandsubscriptionmode.saved_payment_method_options.allow_redisplay_filters(array of enums, nullable) 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:alwaysWhen set, Checkout will show eligible saved payment methods with theallow_redisplayvalue ofalwayslimitedWhen set, Checkout will show eligible saved payment methods with theallow_redisplayvalue oflimitedunspecifiedWhen set, Checkout will show eligible saved payment methods with theallow_redisplayvalue ofunspecified
saved_payment_method_options.payment_method_remove(enum, nullable) 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, nullable) 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(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the SetupIntent for Checkout Sessions insetupmode. You can’t confirm or cancel the SetupIntent for a Checkout Session. To cancel, expire the Checkout Session instead.shipping_address_collection(object, nullable) When set, provides configuration for Checkout to collect a shipping address from a customer.shipping_address_collection.allowed_countries(array of enums) An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations. Unsupported country codes:AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI. Possible enum values:ACADAEAFAGAIALAMAOAQARATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBVBWBYBZCACDCFCGCHCICKCLCMCNCOCRCVCWCYCZDEDJDKDMDODZECEEEGEHERESETFIFJFKFOFRGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHNHRHTHUIDIEILIMINIOIQISITJEJMJOJPKEKGKHKIKMKNKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMKMLMMMNMOMQMRMSMTMUMVMWMXMYMZNANCNENGNINLNONPNRNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPYQARERORSRURWSASBSCSDSESGSHSISJSKSLSMSNSOSRSSSTSVSXSZTATCTDTFTGTHTJTKTLTMTNTOTRTTTVTWTZUAUGUSUYUZVAVCVEVGVNVUWFWSXKYEYTZAZMZWZZ
shipping_cost(object, nullable) The details of the customer cost of shipping, including the customer chosen ShippingRate.shipping_cost.amount_subtotal(integer) Total shipping cost before any discounts or taxes are applied.shipping_cost.amount_tax(integer) Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.shipping_cost.amount_total(integer) Total shipping cost after discounts and taxes are applied.shipping_cost.shipping_rate(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the ShippingRate for this order.shipping_cost.taxes(array of objects, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The taxes applied to the shipping rate.shipping_cost.taxes.amount(integer) Amount of tax applied for this rate.shipping_cost.taxes.rate(object) The tax rate applied.shipping_cost.taxes.rate.id(string) Unique identifier for the object.shipping_cost.taxes.rate.object(string) String representing the object’s type. Objects of the same type share the same value.shipping_cost.taxes.rate.active(boolean) Defaults totrue. When set tofalse, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.shipping_cost.taxes.rate.country(string, nullable) Two-letter country code (ISO 3166-1 alpha-2).shipping_cost.taxes.rate.created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.shipping_cost.taxes.rate.description(string, nullable) An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.shipping_cost.taxes.rate.display_name(string) The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.shipping_cost.taxes.rate.effective_percentage(float, nullable) Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.shipping_cost.taxes.rate.flat_amount(object, nullable) The amount of the tax rate when therate_typeisflat_amount. Tax rates withrate_typepercentagecan vary based on the transaction, resulting in this field beingnull. This field exposes the amount and currency of the flat tax rate.shipping_cost.taxes.rate.flat_amount.amount(integer) Amount of the tax when therate_typeisflat_amount. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).shipping_cost.taxes.rate.flat_amount.currency(string) Three-letter ISO currency code, in lowercase.
shipping_cost.taxes.rate.inclusive(boolean) This specifies if the tax rate is inclusive or exclusive.shipping_cost.taxes.rate.jurisdiction(string, nullable) The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.shipping_cost.taxes.rate.jurisdiction_level(enum, nullable) The level of the jurisdiction that imposes this tax rate. Will benullfor manually defined tax rates. Possible enum values:citycountrycountydistrictmultiplestate
shipping_cost.taxes.rate.livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.shipping_cost.taxes.rate.metadata(object, nullable) 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.shipping_cost.taxes.rate.percentage(float) Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.shipping_cost.taxes.rate.rate_type(enum, nullable) Indicates the type of tax rate applied to the taxable amount. This value can benullwhen no tax applies to the location. This field is only present for TaxRates created by Stripe Tax. Possible enum values:flat_amountA fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.percentageA tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
shipping_cost.taxes.rate.state(string, nullable) ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.shipping_cost.taxes.rate.tax_type(enum, nullable) The high-level tax type, such asvatorsales_tax. Possible enum values:admissions_taxAdmissions Taxamusement_taxAmusement Taxattendance_taxAttendance Taxcommunications_taxCommunications Taxentertainment_taxEntertainment Taxgross_receipts_taxGross Receipts TaxgstGoods and Services Taxhospitality_taxHospitality TaxhstHarmonized Sales TaxigstIntegrated Goods and Services TaxjctJapanese Consumption Taxlease_taxChicago Lease Taxluxury_taxLuxury TaxpstProvincial Sales TaxqstQuebec Sales Taxresort_taxResort Taxretail_delivery_feeRetail Delivery FeerstRetail Sales Taxsales_taxSales Taxservice_taxService Taxtourism_taxTourism TaxvatValue-Added Tax
shipping_cost.taxes.taxability_reason(enum, nullable) The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. Possible enum values:customer_exemptNo tax is applied as the customer is exempt from tax.not_collectingNo tax is collected either because you are not registered to collect tax in this jurisdiction, or because the non-taxable product tax code (txcd_00000000) was used.not_subject_to_taxNo tax is imposed on this transaction.not_supportedNo tax applied. Stripe doesn’t support this jurisdiction, territory, or product.portion_product_exemptA portion of the price is exempt from tax.portion_reduced_ratedA portion of the price is taxed at a reduced rate.portion_standard_ratedA portion of the price is taxed at the standard rate.product_exemptThe product or service is nontaxable or exempt from tax.product_exempt_holidayThe product or service is not taxed due to a sales tax holiday.proportionally_ratedThe shipping cost tax rate is calculated as a weighted average of the other line items’ rates, weighted by their amounts.reduced_ratedTaxed at a reduced rate.reverse_chargeNo tax is applied as it is the responsibility of the buyer to account for tax in this case.standard_ratedTaxed at the standard rate.taxable_basis_reducedA reduced amount of the price is subject to tax.zero_ratedThe transaction is taxed at a special rate of 0% or the transaction is exempt (but these exempt transactions still let you deduct the “input VAT” paid on your business purchases).
shipping_cost.taxes.taxable_amount(integer, nullable) The amount on which tax is calculated, in the smallest currency unit.
shipping_options(array of objects) The shipping rate options applied to this Session.shipping_options.shipping_amount(integer) A non-negative integer in cents representing how much to charge.shipping_options.shipping_rate(string, expandable (can be expanded into an object with theexpandrequest parameter)) The shipping rate.
status(enum, nullable) The status of the Checkout Session, one ofopen,complete, orexpired. Possible enum values:completeThe checkout session is complete. Payment processing may still be in progressexpiredThe checkout session has expired. No further processing will occuropenThe checkout session is still in progress. Payment processing has not started
submit_type(enum, nullable) 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 inpaymentmode. If blank orauto,payis used. 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(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the Subscription for Checkout Sessions insubscriptionmode.success_url(string, nullable) The URL the customer will be directed to after the payment or subscription creation is successful.tax_id_collection(object, nullable) Details on the state of tax ID collection for the session.tax_id_collection.enabled(boolean) Indicates whether tax ID collection is enabled for the sessiontax_id_collection.required(enum) Indicates whether a tax ID is required on the payment page 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.
total_details(object, nullable) Tax and discount details for the computed total amount.total_details.amount_discount(integer) This is the sum of all the discounts.total_details.amount_shipping(integer, nullable) This is the sum of all the shipping amounts.total_details.amount_tax(integer) This is the sum of all the tax amounts.total_details.breakdown(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) Breakdown of individual tax and discount amounts that add up to the totals.total_details.breakdown.discounts(array of objects) The aggregated discounts.total_details.breakdown.discounts.amount(integer) The amount discounted.total_details.breakdown.discounts.discount(object) The discount applied.total_details.breakdown.discounts.discount.id(string) The ID of the discount object. Discounts cannot be fetched by ID. Useexpand[]=discountsin API calls to expand discount IDs in an array.total_details.breakdown.discounts.discount.object(string) String representing the object’s type. Objects of the same type share the same value.total_details.breakdown.discounts.discount.checkout_session(string, nullable) The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.total_details.breakdown.discounts.discount.customer(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The ID of the customer associated with this discount.total_details.breakdown.discounts.discount.customer_account(string, nullable) The ID of the account representing the customer associated with this discount.total_details.breakdown.discounts.discount.end(timestamp, nullable) If the coupon has a duration ofrepeating, the date that this discount will end. If the coupon has a duration ofonceorforever, this attribute will be null.total_details.breakdown.discounts.discount.invoice(string, nullable) The invoice that the discount’s coupon was applied to, if it was applied directly to a particular invoice.total_details.breakdown.discounts.discount.invoice_item(string, nullable) The invoice itemid(or invoice line itemidfor invoice line items of type=‘subscription’) that the discount’s coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.total_details.breakdown.discounts.discount.promotion_code(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The promotion code applied to create this discount.total_details.breakdown.discounts.discount.source(object) The source of the discount.total_details.breakdown.discounts.discount.source.coupon(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The coupon that was redeemed to create this discount.total_details.breakdown.discounts.discount.source.type(enum) The source type of the discount. Possible enum values:couponCoupon source type
total_details.breakdown.discounts.discount.start(timestamp) Date that the coupon was applied.total_details.breakdown.discounts.discount.subscription(string, nullable) The subscription that this coupon is applied to, if it is applied to a particular subscription.total_details.breakdown.discounts.discount.subscription_item(string, nullable) The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
total_details.breakdown.taxes(array of objects) The aggregated tax amounts by rate.total_details.breakdown.taxes.amount(integer) Amount of tax applied for this rate.total_details.breakdown.taxes.rate(object) The tax rate applied.total_details.breakdown.taxes.rate.id(string) Unique identifier for the object.total_details.breakdown.taxes.rate.object(string) String representing the object’s type. Objects of the same type share the same value.total_details.breakdown.taxes.rate.active(boolean) Defaults totrue. When set tofalse, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.total_details.breakdown.taxes.rate.country(string, nullable) Two-letter country code (ISO 3166-1 alpha-2).total_details.breakdown.taxes.rate.created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.total_details.breakdown.taxes.rate.description(string, nullable) An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.total_details.breakdown.taxes.rate.display_name(string) The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.total_details.breakdown.taxes.rate.effective_percentage(float, nullable) Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.total_details.breakdown.taxes.rate.flat_amount(object, nullable) The amount of the tax rate when therate_typeisflat_amount. Tax rates withrate_typepercentagecan vary based on the transaction, resulting in this field beingnull. This field exposes the amount and currency of the flat tax rate.total_details.breakdown.taxes.rate.flat_amount.amount(integer) Amount of the tax when therate_typeisflat_amount. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).total_details.breakdown.taxes.rate.flat_amount.currency(string) Three-letter ISO currency code, in lowercase.
total_details.breakdown.taxes.rate.inclusive(boolean) This specifies if the tax rate is inclusive or exclusive.total_details.breakdown.taxes.rate.jurisdiction(string, nullable) The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.total_details.breakdown.taxes.rate.jurisdiction_level(enum, nullable) The level of the jurisdiction that imposes this tax rate. Will benullfor manually defined tax rates. Possible enum values:citycountrycountydistrictmultiplestate
total_details.breakdown.taxes.rate.livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.total_details.breakdown.taxes.rate.metadata(object, nullable) 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.total_details.breakdown.taxes.rate.percentage(float) Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.total_details.breakdown.taxes.rate.rate_type(enum, nullable) Indicates the type of tax rate applied to the taxable amount. This value can benullwhen no tax applies to the location. This field is only present for TaxRates created by Stripe Tax. Possible enum values:flat_amountA fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.percentageA tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
total_details.breakdown.taxes.rate.state(string, nullable) ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.total_details.breakdown.taxes.rate.tax_type(enum, nullable) The high-level tax type, such asvatorsales_tax. Possible enum values:admissions_taxAdmissions Taxamusement_taxAmusement Taxattendance_taxAttendance Taxcommunications_taxCommunications Taxentertainment_taxEntertainment Taxgross_receipts_taxGross Receipts TaxgstGoods and Services Taxhospitality_taxHospitality TaxhstHarmonized Sales TaxigstIntegrated Goods and Services TaxjctJapanese Consumption Taxlease_taxChicago Lease Taxluxury_taxLuxury TaxpstProvincial Sales TaxqstQuebec Sales Taxresort_taxResort Taxretail_delivery_feeRetail Delivery FeerstRetail Sales Taxsales_taxSales Taxservice_taxService Taxtourism_taxTourism TaxvatValue-Added Tax
total_details.breakdown.taxes.taxability_reason(enum, nullable) The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. Possible enum values:customer_exemptNo tax is applied as the customer is exempt from tax.not_collectingNo tax is collected either because you are not registered to collect tax in this jurisdiction, or because the non-taxable product tax code (txcd_00000000) was used.not_subject_to_taxNo tax is imposed on this transaction.not_supportedNo tax applied. Stripe doesn’t support this jurisdiction, territory, or product.portion_product_exemptA portion of the price is exempt from tax.portion_reduced_ratedA portion of the price is taxed at a reduced rate.portion_standard_ratedA portion of the price is taxed at the standard rate.product_exemptThe product or service is nontaxable or exempt from tax.product_exempt_holidayThe product or service is not taxed due to a sales tax holiday.proportionally_ratedThe shipping cost tax rate is calculated as a weighted average of the other line items’ rates, weighted by their amounts.reduced_ratedTaxed at a reduced rate.reverse_chargeNo tax is applied as it is the responsibility of the buyer to account for tax in this case.standard_ratedTaxed at the standard rate.taxable_basis_reducedA reduced amount of the price is subject to tax.zero_ratedThe transaction is taxed at a special rate of 0% or the transaction is exempt (but these exempt transactions still let you deduct the “input VAT” paid on your business purchases).
total_details.breakdown.taxes.taxable_amount(integer, nullable) The amount on which tax is calculated, in the smallest currency unit.
ui_mode(enum, nullable) 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.
url(string, nullable) The URL to the Checkout Session. Applies to Checkout Sessions withui_mode: hosted_page. Redirect customers to this URL to take them to Checkout. If you’re using Custom Domains, the URL will use your subdomain. Otherwise, it’ll usecheckout.stripe.com.This value is only present when the session is active.wallet_options(object, nullable) Wallet-specific configuration for this Checkout Session.wallet_options.link(object, nullable) This hash contains the configurations that will be applied to the wallet of this type.wallet_options.link.display(enum, nullable) Describes whether Checkout should display Link. Defaults toauto. 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.
The Checkout Session object
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"
}