Parameters for session create.
Summary
Types
@type adaptive_pricing() :: %{ optional(:enabled) => boolean() | nil, optional(String.t()) => term() }
enabled- If set totrue, Adaptive Pricing is available on eligible sessions. Defaults to your dashboard setting.
@type after_expiration() :: %{ optional(:recovery) => after_expiration_recovery() | nil, optional(String.t()) => term() }
recovery- Configure a Checkout Session that can be used to recover an expired session.
@type after_expiration_recovery() :: %{ optional(:allow_promotion_codes) => boolean() | nil, optional(:enabled) => boolean() | nil, optional(String.t()) => term() }
allow_promotion_codes- Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults tofalseenabled- Iftrue, a recovery URL will be generated to recover this Checkout Session if it expires before a successful transaction is completed. It will be attached to the Checkout Session object upon expiration.
@type automatic_tax() :: %{ optional(:enabled) => boolean() | nil, optional(:liability) => automatic_tax_liability() | nil, optional(String.t()) => term() }
enabled- Set totrueto calculate tax automatically using the customer's location.
Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
liability- 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.
@type automatic_tax_liability() :: %{ optional(:account) => String.t() | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
account- The connected account being referenced whentypeisaccount.type- Type of the account referenced in the request. Possible values:account,self.
@type branding_settings() :: %{ optional(:background_color) => map() | nil, optional(:border_style) => String.t() | nil, optional(:button_color) => map() | nil, optional(:display_name) => String.t() | nil, optional(:font_family) => String.t() | nil, optional(:icon) => branding_settings_icon() | nil, optional(:logo) => branding_settings_logo() | nil, optional(String.t()) => term() }
background_color- A hex color value starting with#representing the background color for the Checkout Session.border_style- The border style for the Checkout Session. Possible values:pill,rectangular,rounded.button_color- A hex color value starting with#representing the button color for the Checkout Session.display_name- A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places. Max length: 5000.font_family- The font family for the Checkout Session corresponding to one of the supported font families. Possible values:be_vietnam_pro,bitter,chakra_petch,default,hahmlet,inconsolata,inter,lato,lora,m_plus_1_code,montserrat,noto_sans,noto_sans_jp,noto_serif,nunito,open_sans,pridi,pt_sans,pt_serif,raleway,roboto,roboto_slab,source_sans_pro,titillium_web,ubuntu_mono,zen_maru_gothic.icon- The icon for the Checkout Session. For best results, use a square image.logo- The logo for the Checkout Session.
@type branding_settings_icon() :: %{ optional(:file) => String.t() | nil, optional(:type) => String.t() | nil, optional(:url) => String.t() | nil, optional(String.t()) => term() }
file- The ID of a File upload representing the icon. Purpose must bebusiness_icon. Required iftypeisfileand disallowed otherwise.type- The type of image for the icon. Must be one offileorurl. Possible values:file,url.url- The URL of the image. Required iftypeisurland disallowed otherwise.
@type branding_settings_logo() :: %{ optional(:file) => String.t() | nil, optional(:type) => String.t() | nil, optional(:url) => String.t() | nil, optional(String.t()) => term() }
file- The ID of a File upload representing the logo. Purpose must bebusiness_logo. Required iftypeisfileand disallowed otherwise.type- The type of image for the logo. Must be one offileorurl. Possible values:file,url.url- The URL of the image. Required iftypeisurland disallowed otherwise.
@type consent_collection() :: %{ optional(:payment_method_reuse_agreement) => consent_collection_payment_method_reuse_agreement() | nil, optional(:promotions) => String.t() | nil, optional(:terms_of_service) => String.t() | nil, optional(String.t()) => term() }
payment_method_reuse_agreement- Determines the display of payment method reuse agreement text in the UI. If set tohidden, it will hide legal text related to the reuse of a payment method.promotions- 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 values:auto,none.terms_of_service- If set torequired, it requires customers to check a terms of service checkbox before being able to pay. There must be a valid terms of service URL set in your Dashboard settings. Possible values:none,required.
@type consent_collection_payment_method_reuse_agreement() :: %{ optional(:position) => String.t() | nil, optional(String.t()) => term() }
position- Determines the position and visibility of the payment method reuse agreement in the UI. When set toauto, Stripe's defaults will be used. When set tohidden, the payment method reuse agreement text will always be hidden in the UI. Possible values:auto,hidden.
@type custom_fields() :: %{ optional(:dropdown) => custom_fields_dropdown() | nil, optional(:key) => String.t() | nil, optional(:label) => custom_fields_label() | nil, optional(:numeric) => custom_fields_numeric() | nil, optional(:optional) => boolean() | nil, optional(:text) => custom_fields_text() | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
dropdown- Configuration fortype=dropdownfields.key- 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. Max length: 200.label- The label for the field, displayed to the customer.numeric- Configuration fortype=numericfields.optional- Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse.text- Configuration fortype=textfields.type- The type of the field. Possible values:dropdown,numeric,text.
@type custom_fields_dropdown() :: %{ optional(:default_value) => String.t() | nil, optional(:options) => [custom_fields_dropdown_options()] | nil, optional(String.t()) => term() }
default_value- The value that will pre-fill the field on the payment page.Must match avaluein theoptionsarray. Max length: 100.options- The options available for the customer to select. Up to 200 options allowed.
@type custom_fields_dropdown_options() :: %{ optional(:label) => String.t() | nil, optional(:value) => String.t() | nil, optional(String.t()) => term() }
label- The label for the option, displayed to the customer. Up to 100 characters. Max length: 100.value- 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. Max length: 100.
@type custom_fields_label() :: %{ optional(:custom) => String.t() | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
custom- Custom text for the label, displayed to the customer. Up to 50 characters. Max length: 50.type- The type of the label. Possible values:custom.
@type custom_fields_numeric() :: %{ optional(:default_value) => String.t() | nil, optional(:maximum_length) => integer() | nil, optional(:minimum_length) => integer() | nil, optional(String.t()) => term() }
default_value- The value that will pre-fill the field on the payment page. Max length: 255.maximum_length- The maximum character length constraint for the customer's input.minimum_length- The minimum character length requirement for the customer's input.
@type custom_fields_text() :: %{ optional(:default_value) => String.t() | nil, optional(:maximum_length) => integer() | nil, optional(:minimum_length) => integer() | nil, optional(String.t()) => term() }
default_value- The value that will pre-fill the field on the payment page. Max length: 255.maximum_length- The maximum character length constraint for the customer's input.minimum_length- The minimum character length requirement for the customer's input.
@type custom_text() :: %{ optional(:after_submit) => map() | nil, optional(:shipping_address) => map() | nil, optional(:submit) => map() | nil, optional(:terms_of_service_acceptance) => map() | nil, optional(String.t()) => term() }
after_submit- Custom text that should be displayed after the payment confirmation button.shipping_address- Custom text that should be displayed alongside shipping address collection.submit- Custom text that should be displayed alongside the payment confirmation button.terms_of_service_acceptance- Custom text that should be displayed in place of the default terms of service agreement text.
@type customer_update() :: %{ optional(:address) => String.t() | nil, optional(:name) => String.t() | nil, optional(:shipping) => String.t() | nil, optional(String.t()) => term() }
address- Describes whether Checkout saves the billing address ontocustomer.address. To always collect a full billing address, usebilling_address_collection. Defaults tonever. Possible values:auto,never.name- Describes whether Checkout saves the name ontocustomer.name. Defaults tonever. Possible values:auto,never.shipping- Describes whether Checkout saves shipping information ontocustomer.shipping. To collect shipping information, useshipping_address_collection. Defaults tonever. Possible values:auto,never.
@type discounts() :: %{ optional(:coupon) => String.t() | nil, optional(:promotion_code) => String.t() | nil, optional(String.t()) => term() }
coupon- The ID of the coupon to apply to this Session. Max length: 5000.promotion_code- The ID of a promotion code to apply to this Session. Max length: 5000.
@type invoice_creation() :: %{ optional(:enabled) => boolean() | nil, optional(:invoice_data) => invoice_creation_invoice_data() | nil, optional(String.t()) => term() }
enabled- Set totrueto enable invoice creation.invoice_data- Parameters passed when creating invoices for payment-mode Checkout Sessions.
@type invoice_creation_invoice_data() :: %{ optional(:account_tax_ids) => map() | nil, optional(:custom_fields) => map() | nil, optional(:description) => String.t() | nil, optional(:footer) => String.t() | nil, optional(:issuer) => invoice_creation_invoice_data_issuer() | nil, optional(:metadata) => %{required(String.t()) => String.t()} | nil, optional(:rendering_options) => map() | nil, optional(String.t()) => term() }
account_tax_ids- The account tax IDs associated with the invoice.custom_fields- Default custom fields to be displayed on invoices for this customer.description- An arbitrary string attached to the object. Often useful for displaying to users. Max length: 1500.footer- Default footer to be displayed on invoices for this customer. Max length: 5000.issuer- The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.rendering_options- Default options for invoice PDF rendering for this customer.
@type invoice_creation_invoice_data_issuer() :: %{ optional(:account) => String.t() | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
account- The connected account being referenced whentypeisaccount.type- Type of the account referenced in the request. Possible values:account,self.
@type line_items() :: %{ optional(:adjustable_quantity) => line_items_adjustable_quantity() | nil, optional(:dynamic_tax_rates) => [String.t()] | nil, optional(:metadata) => %{required(String.t()) => String.t()} | nil, optional(:price) => String.t() | nil, optional(:price_data) => line_items_price_data() | nil, optional(:quantity) => integer() | nil, optional(:tax_rates) => [String.t()] | nil, optional(String.t()) => term() }
adjustable_quantity- When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.dynamic_tax_rates- The tax rates that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. You can't set this parameter ifui_modeiscustom.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.price- The ID of the Price or Plan object. One ofpriceorprice_datais required. Max length: 5000.price_data- Data used to generate a new Price object inline. One ofpriceorprice_datais required.quantity- The quantity of the line item being purchased. Quantity should not be defined whenrecurring.usage_type=metered.tax_rates- The tax rates which apply to this line item.
@type line_items_adjustable_quantity() :: %{ optional(:enabled) => boolean() | nil, optional(:maximum) => integer() | nil, optional(:minimum) => integer() | nil, optional(String.t()) => term() }
enabled- Set to true if the quantity can be adjusted to any non-negative integer.maximum- The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.minimum- The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
@type line_items_price_data() :: %{ optional(:currency) => String.t() | nil, optional(:product) => String.t() | nil, optional(:product_data) => line_items_price_data_product_data() | nil, optional(:recurring) => line_items_price_data_recurring() | nil, optional(:tax_behavior) => String.t() | nil, optional(:unit_amount) => integer() | nil, optional(:unit_amount_decimal) => String.t() | nil, optional(String.t()) => term() }
currency- Three-letter ISO currency code, in lowercase. Must be a supported currency. Format: ISO 4217 currency code.product- The ID of the Product that this Price will belong to. One ofproductorproduct_datais required. Max length: 5000.product_data- Data used to generate a new Product object inline. One ofproductorproduct_datais required.recurring- The recurring components of a price such asintervalandinterval_count.tax_behavior- 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 values:exclusive,inclusive,unspecified.unit_amount- A non-negative integer in cents (or local equivalent) representing how much to charge. One ofunit_amountorunit_amount_decimalis required.unit_amount_decimal- Same asunit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set. Format: decimal string.
@type line_items_price_data_product_data() :: %{ optional(:description) => String.t() | nil, optional(:images) => [String.t()] | nil, optional(:metadata) => %{required(String.t()) => String.t()} | nil, optional(:name) => String.t() | nil, optional(:tax_code) => String.t() | nil, optional(:unit_label) => String.t() | nil, optional(String.t()) => term() }
description- The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. Max length: 40000.images- A list of up to 8 URLs of images for this product, meant to be displayable to the customer.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.name- The product's name, meant to be displayable to the customer. Max length: 5000.tax_code- A tax code ID. Max length: 5000.unit_label- A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. Max length: 12.
@type line_items_price_data_recurring() :: %{ optional(:interval) => String.t() | nil, optional(:interval_count) => integer() | nil, optional(String.t()) => term() }
interval- Specifies billing frequency. Eitherday,week,monthoryear. Possible values:day,month,week,year.interval_count- The number of intervals between subscription billings. For example,interval=monthandinterval_count=3bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
@type name_collection() :: %{ optional(:business) => name_collection_business() | nil, optional(:individual) => name_collection_individual() | nil, optional(String.t()) => term() }
business- Controls settings applied for collecting the customer's business name on the session.individual- Controls settings applied for collecting the customer's individual name on the session.
@type name_collection_business() :: %{ optional(:enabled) => boolean() | nil, optional(:optional) => boolean() | nil, optional(String.t()) => term() }
enabled- Enable business name collection on the Checkout Session. Defaults tofalse.optional- Whether the customer is required to provide a business name before completing the Checkout Session. Defaults tofalse.
@type name_collection_individual() :: %{ optional(:enabled) => boolean() | nil, optional(:optional) => boolean() | nil, optional(String.t()) => term() }
enabled- Enable individual name collection on the Checkout Session. Defaults tofalse.optional- Whether the customer is required to provide their name before completing the Checkout Session. Defaults tofalse.
@type optional_items() :: %{ optional(:adjustable_quantity) => optional_items_adjustable_quantity() | nil, optional(:price) => String.t() | nil, optional(:quantity) => integer() | nil, optional(String.t()) => term() }
adjustable_quantity- When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.price- The ID of the Price or Plan object. Max length: 5000.quantity- The initial quantity of the line item created when a customer chooses to add this optional item to their order.
@type optional_items_adjustable_quantity() :: %{ optional(:enabled) => boolean() | nil, optional(:maximum) => integer() | nil, optional(:minimum) => integer() | nil, optional(String.t()) => term() }
enabled- Set to true if the quantity can be adjusted to any non-negative integer.maximum- The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.minimum- The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if theminimumconfigured here is greater than 0. By default this value is 0.
@type payment_intent_data() :: %{ optional(:application_fee_amount) => integer() | nil, optional(:capture_method) => String.t() | nil, optional(:description) => String.t() | nil, optional(:metadata) => %{required(String.t()) => String.t()} | nil, optional(:on_behalf_of) => String.t() | nil, optional(:receipt_email) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(:shipping) => payment_intent_data_shipping() | nil, optional(:statement_descriptor) => String.t() | nil, optional(:statement_descriptor_suffix) => String.t() | nil, optional(:transfer_data) => payment_intent_data_transfer_data() | nil, optional(:transfer_group) => String.t() | nil, optional(String.t()) => term() }
application_fee_amount- The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents use case for connected accounts.capture_method- Controls when the funds will be captured from the customer's account. Possible values:automatic,automatic_async,manual.description- An arbitrary string attached to the object. Often useful for displaying to users. Max length: 1000.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.on_behalf_of- The Stripe account ID for which these funds are intended. For details, see the PaymentIntents use case for connected accounts.receipt_email- Email address that the receipt for the resulting payment will be sent to. Ifreceipt_emailis specified for a payment in live mode, a receipt will be sent regardless of your email settings.setup_future_usage- Indicates that you intend to make future payments with the payment method collected by this Checkout Session.
When setting this to on_session, Checkout will show a notice to the
customer that their payment details will be saved.
When setting this to off_session, Checkout will show a notice to the
customer that their payment details will be saved and used for future
payments.
If a Customer has been provided or Checkout creates a new Customer, Checkout will attach the payment method to the Customer.
If Checkout does not create a Customer, the payment method is not attached to a Customer. To reuse the payment method, you can retrieve it from the Checkout Session's PaymentIntent.
When processing card payments, Checkout also uses setup_future_usage
to dynamically optimize your payment flow and comply with regional
legislation and network rules, such as SCA. Possible values: off_session, on_session.
shipping- Shipping information for this payment.statement_descriptor- Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see the Statement Descriptor docs.
Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix instead. Max length: 22.
statement_descriptor_suffix- Provides information about a card charge. Concatenated to the account's statement descriptor prefix to form the complete statement descriptor that appears on the customer's statement. Max length: 22.transfer_data- The parameters used to automatically create a Transfer when the payment succeeds. For more information, see the PaymentIntents use case for connected accounts.transfer_group- A string that identifies the resulting payment as part of a group. See the PaymentIntents use case for connected accounts for details.
@type payment_intent_data_shipping() :: %{ optional(:address) => payment_intent_data_shipping_address() | nil, optional(:carrier) => String.t() | nil, optional(:name) => String.t() | nil, optional(:phone) => String.t() | nil, optional(:tracking_number) => String.t() | nil, optional(String.t()) => term() }
address- Shipping address.carrier- The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. Max length: 5000.name- Recipient name. Max length: 5000.phone- Recipient phone (including extension). Max length: 5000.tracking_number- The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas. Max length: 5000.
@type payment_intent_data_shipping_address() :: %{ optional(:city) => String.t() | nil, optional(:country) => String.t() | nil, optional(:line1) => String.t() | nil, optional(:line2) => String.t() | nil, optional(:postal_code) => String.t() | nil, optional(:state) => String.t() | nil, optional(String.t()) => term() }
city- City, district, suburb, town, or village. Max length: 5000.country- Two-letter country code (ISO 3166-1 alpha-2). Max length: 5000.line1- Address line 1, such as the street, PO Box, or company name. Max length: 5000.line2- Address line 2, such as the apartment, suite, unit, or building. Max length: 5000.postal_code- ZIP or postal code. Max length: 5000.state- State, county, province, or region (ISO 3166-2). Max length: 5000.
@type payment_intent_data_transfer_data() :: %{ optional(:amount) => integer() | nil, optional(:destination) => String.t() | nil, optional(String.t()) => term() }
amount- The amount that will be transferred automatically when a charge succeeds.destination- If specified, successful charges will be attributed to the destination account for tax reporting, and the funds from charges will be transferred to the destination account. The ID of the resulting transfer will be returned on the successful charge'stransferfield.
@type payment_method_data() :: %{ optional(:allow_redisplay) => String.t() | nil, optional(String.t()) => term() }
allow_redisplay- Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout. Possible values:always,limited,unspecified.
@type payment_method_options() :: %{ optional(:acss_debit) => payment_method_options_acss_debit() | nil, optional(:affirm) => payment_method_options_affirm() | nil, optional(:afterpay_clearpay) => payment_method_options_afterpay_clearpay() | nil, optional(:alipay) => payment_method_options_alipay() | nil, optional(:alma) => payment_method_options_alma() | nil, optional(:amazon_pay) => payment_method_options_amazon_pay() | nil, optional(:au_becs_debit) => payment_method_options_au_becs_debit() | nil, optional(:bacs_debit) => payment_method_options_bacs_debit() | nil, optional(:bancontact) => payment_method_options_bancontact() | nil, optional(:billie) => payment_method_options_billie() | nil, optional(:boleto) => payment_method_options_boleto() | nil, optional(:card) => payment_method_options_card() | nil, optional(:cashapp) => payment_method_options_cashapp() | nil, optional(:customer_balance) => payment_method_options_customer_balance() | nil, optional(:demo_pay) => payment_method_options_demo_pay() | nil, optional(:eps) => payment_method_options_eps() | nil, optional(:fpx) => payment_method_options_fpx() | nil, optional(:giropay) => payment_method_options_giropay() | nil, optional(:grabpay) => payment_method_options_grabpay() | nil, optional(:ideal) => payment_method_options_ideal() | nil, optional(:kakao_pay) => payment_method_options_kakao_pay() | nil, optional(:klarna) => payment_method_options_klarna() | nil, optional(:konbini) => payment_method_options_konbini() | nil, optional(:kr_card) => payment_method_options_kr_card() | nil, optional(:link) => payment_method_options_link() | nil, optional(:mobilepay) => payment_method_options_mobilepay() | nil, optional(:multibanco) => payment_method_options_multibanco() | nil, optional(:naver_pay) => payment_method_options_naver_pay() | nil, optional(:oxxo) => payment_method_options_oxxo() | nil, optional(:p24) => payment_method_options_p24() | nil, optional(:pay_by_bank) => map() | nil, optional(:payco) => payment_method_options_payco() | nil, optional(:paynow) => payment_method_options_paynow() | nil, optional(:paypal) => payment_method_options_paypal() | nil, optional(:payto) => payment_method_options_payto() | nil, optional(:pix) => payment_method_options_pix() | nil, optional(:revolut_pay) => payment_method_options_revolut_pay() | nil, optional(:samsung_pay) => payment_method_options_samsung_pay() | nil, optional(:satispay) => payment_method_options_satispay() | nil, optional(:sepa_debit) => payment_method_options_sepa_debit() | nil, optional(:sofort) => payment_method_options_sofort() | nil, optional(:swish) => payment_method_options_swish() | nil, optional(:twint) => payment_method_options_twint() | nil, optional(:us_bank_account) => payment_method_options_us_bank_account() | nil, optional(:wechat_pay) => payment_method_options_wechat_pay() | nil, optional(String.t()) => term() }
acss_debit- contains details about the ACSS Debit payment method options. You can't set this parameter ifui_modeiscustom.affirm- contains details about the Affirm payment method options.afterpay_clearpay- contains details about the Afterpay Clearpay payment method options.alipay- contains details about the Alipay payment method options.alma- contains details about the Alma payment method options.amazon_pay- contains details about the AmazonPay payment method options.au_becs_debit- contains details about the AU Becs Debit payment method options.bacs_debit- contains details about the Bacs Debit payment method options.bancontact- contains details about the Bancontact payment method options.billie- contains details about the Billie payment method options.boleto- contains details about the Boleto payment method options.card- contains details about the Card payment method options.cashapp- contains details about the Cashapp Pay payment method options.customer_balance- contains details about the Customer Balance payment method options.demo_pay- contains details about the DemoPay payment method options.eps- contains details about the EPS payment method options.fpx- contains details about the FPX payment method options.giropay- contains details about the Giropay payment method options.grabpay- contains details about the Grabpay payment method options.ideal- contains details about the Ideal payment method options.kakao_pay- contains details about the Kakao Pay payment method options.klarna- contains details about the Klarna payment method options.konbini- contains details about the Konbini payment method options.kr_card- contains details about the Korean card payment method options.link- contains details about the Link payment method options.mobilepay- contains details about the Mobilepay payment method options.multibanco- contains details about the Multibanco payment method options.naver_pay- contains details about the Naver Pay payment method options.oxxo- contains details about the OXXO payment method options.p24- contains details about the P24 payment method options.pay_by_bank- contains details about the Pay By Bank payment method options.payco- contains details about the PAYCO payment method options.paynow- contains details about the PayNow payment method options.paypal- contains details about the PayPal payment method options.payto- contains details about the PayTo payment method options.pix- contains details about the Pix payment method options.revolut_pay- contains details about the RevolutPay payment method options.samsung_pay- contains details about the Samsung Pay payment method options.satispay- contains details about the Satispay payment method options.sepa_debit- contains details about the Sepa Debit payment method options.sofort- contains details about the Sofort payment method options.swish- contains details about the Swish payment method options.twint- contains details about the TWINT payment method options.us_bank_account- contains details about the Us Bank Account payment method options.wechat_pay- contains details about the WeChat Pay payment method options.
@type payment_method_options_acss_debit() :: %{ optional(:currency) => String.t() | nil, optional(:mandate_options) => payment_method_options_acss_debit_mandate_options() | nil, optional(:setup_future_usage) => String.t() | nil, optional(:target_date) => String.t() | nil, optional(:verification_method) => String.t() | nil, optional(String.t()) => term() }
currency- Three-letter ISO currency code, in lowercase. Must be a supported currency. This is only accepted for Checkout Sessions insetupmode. Possible values:cad,usd.mandate_options- Additional fields for Mandate creationsetup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session, on_session.
target_date- 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. Max length: 5000.verification_method- Verification method for the intent Possible values:automatic,instant,microdeposits.
@type payment_method_options_acss_debit_mandate_options() :: %{ optional(:custom_mandate_url) => map() | nil, optional(:default_for) => [String.t()] | nil, optional(:interval_description) => String.t() | nil, optional(:payment_schedule) => String.t() | nil, optional(:transaction_type) => String.t() | nil, optional(String.t()) => term() }
custom_mandate_url- A URL for custom mandate text to render during confirmation step. The URL will be rendered with additional GET parameterspayment_intentandpayment_intent_client_secretwhen confirming a Payment Intent, orsetup_intentandsetup_intent_client_secretwhen confirming a Setup Intent.default_for- List of Stripe products where this mandate can be selected automatically. Only usable insetupmode.interval_description- Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'. Max length: 500.payment_schedule- Payment schedule for the mandate. Possible values:combined,interval,sporadic.transaction_type- Transaction type of the mandate. Possible values:business,personal.
@type payment_method_options_affirm() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_afterpay_clearpay() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_alipay() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_alma() :: %{ optional(:capture_method) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.
@type payment_method_options_amazon_pay() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session.
@type payment_method_options_au_becs_debit() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(:target_date) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
target_date- 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. Max length: 5000.
@type payment_method_options_bacs_debit() :: %{ optional(:mandate_options) => payment_method_options_bacs_debit_mandate_options() | nil, optional(:setup_future_usage) => String.t() | nil, optional(:target_date) => String.t() | nil, optional(String.t()) => term() }
mandate_options- Additional fields for Mandate creationsetup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session, on_session.
target_date- 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. Max length: 5000.
@type payment_method_options_bacs_debit_mandate_options() :: %{ optional(:reference_prefix) => map() | nil, optional(String.t()) => term() }
reference_prefix- 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'.
@type payment_method_options_bancontact() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_billie() :: %{ optional(:capture_method) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.
@type payment_method_options_boleto() :: %{ optional(:expires_after_days) => integer() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
expires_after_days- The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session, on_session.
@type payment_method_options_card() :: %{ optional(:capture_method) => String.t() | nil, optional(:installments) => payment_method_options_card_installments() | nil, optional(:request_extended_authorization) => String.t() | nil, optional(:request_incremental_authorization) => String.t() | nil, optional(:request_multicapture) => String.t() | nil, optional(:request_overcapture) => String.t() | nil, optional(:request_three_d_secure) => String.t() | nil, optional(:restrictions) => payment_method_options_card_restrictions() | nil, optional(:setup_future_usage) => String.t() | nil, optional(:statement_descriptor_suffix_kana) => String.t() | nil, optional(:statement_descriptor_suffix_kanji) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.installments- Installment options for card paymentsrequest_extended_authorization- Request ability to capture beyond the standard authorization validity window for this CheckoutSession. Possible values:if_available,never.request_incremental_authorization- Request ability to increment the authorization for this CheckoutSession. Possible values:if_available,never.request_multicapture- Request ability to make multiple captures for this CheckoutSession. Possible values:if_available,never.request_overcapture- Request ability to overcapture for this CheckoutSession. Possible values:if_available,never.request_three_d_secure- 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 values:any,automatic,challenge.restrictions- Restrictions to apply to the card payment method. For example, you can block specific card brands. You can't set this parameter ifui_modeiscustom.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: off_session, on_session.
statement_descriptor_suffix_kana- 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. Max length: 22.statement_descriptor_suffix_kanji- 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. Max length: 17.
@type payment_method_options_card_installments() :: %{ optional(:enabled) => boolean() | nil, optional(String.t()) => term() }
enabled- Setting to true enables installments for this Checkout Session. Setting to false will prevent any installment plan from applying to a payment.
@type payment_method_options_card_restrictions() :: %{ optional(:brands_blocked) => [String.t()] | nil, optional(String.t()) => term() }
brands_blocked- 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.
@type payment_method_options_cashapp() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session, on_session.
@type payment_method_options_customer_balance() :: %{ optional(:bank_transfer) => payment_method_options_customer_balance_bank_transfer() | nil, optional(:funding_type) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
bank_transfer- Configuration for the bank transfer funding type, if thefunding_typeis set tobank_transfer.funding_type- The funding method type to be used when there are not enough funds in the customer balance. Permitted values include:bank_transfer. Possible values:bank_transfer.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_customer_balance_bank_transfer() :: %{ optional(:eu_bank_transfer) => payment_method_options_customer_balance_bank_transfer_eu_bank_transfer() | nil, optional(:requested_address_types) => [String.t()] | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
eu_bank_transfer- Configuration for eu_bank_transfer funding type.requested_address_types- 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, or spei.
type- The list of bank transfer types that this PaymentIntent is allowed to use for funding. Possible values:eu_bank_transfer,gb_bank_transfer,jp_bank_transfer,mx_bank_transfer,us_bank_transfer.
@type payment_method_options_customer_balance_bank_transfer_eu_bank_transfer() :: %{ optional(:country) => String.t() | nil, optional(String.t()) => term() }
country- The desired country code of the bank account information. Permitted values include:BE,DE,ES,FR,IE, orNL. Max length: 5000.
@type payment_method_options_demo_pay() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session.
@type payment_method_options_eps() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_fpx() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_giropay() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_grabpay() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_ideal() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_kakao_pay() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session.
@type payment_method_options_klarna() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(:subscriptions) => map() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
subscriptions- Subscription details if the Checkout Session sets up a future subscription.
@type payment_method_options_konbini() :: %{ optional(:expires_after_days) => integer() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
expires_after_days- The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini andexpires_after_daysset to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_kr_card() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session.
@type payment_method_options_link() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session.
@type payment_method_options_mobilepay() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_multibanco() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_oxxo() :: %{ optional(:expires_after_days) => integer() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
expires_after_days- The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_p24() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(:tos_shown_and_accepted) => boolean() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
tos_shown_and_accepted- Confirm that the payer has accepted the P24 terms and conditions.
@type payment_method_options_payco() :: %{ optional(:capture_method) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.
@type payment_method_options_paynow() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_paypal() :: %{ optional(:capture_method) => String.t() | nil, optional(:preferred_locale) => String.t() | nil, optional(:reference) => String.t() | nil, optional(:risk_correlation_id) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.preferred_locale- Preferred locale of the PayPal checkout page that the customer is redirected to. Possible values:cs-CZ,da-DK,de-AT,de-DE,de-LU,el-GR,en-GB,en-US,es-ES,fi-FI,fr-BE,fr-FR,fr-LU,hu-HU,it-IT,nl-BE,nl-NL,pl-PL,pt-PT,sk-SK,sv-SE.reference- 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. Max length: 127.risk_correlation_id- The risk correlation ID for an on-session payment using a saved PayPal payment method. Max length: 32.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA.
If you've already set setup_future_usage and you're performing a request using a publishable key, you can only update the value from on_session to off_session. Possible values: none, off_session.
@type payment_method_options_payto() :: %{ optional(:mandate_options) => payment_method_options_payto_mandate_options() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
mandate_options- Additional fields for Mandate creationsetup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session.
@type payment_method_options_payto_mandate_options() :: %{ optional(:amount) => map() | nil, optional(:amount_type) => String.t() | nil, optional(:end_date) => map() | nil, optional(:payment_schedule) => String.t() | nil, optional(:payments_per_period) => map() | nil, optional(:purpose) => String.t() | nil, optional(:start_date) => map() | nil, optional(String.t()) => term() }
amount- Amount that will be collected. It is required whenamount_typeisfixed.amount_type- 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 values:fixed,maximum.end_date- Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.payment_schedule- The periodicity at which payments will be collected. Defaults toadhoc. Possible values:adhoc,annual,daily,fortnightly,monthly,quarterly,semi_annual,weekly.payments_per_period- 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.purpose- The purpose for which payments are made. Has a default value based on your merchant category code. Possible values:dependant_support,government,loan,mortgage,other,pension,personal,retail,salary,tax,utility.start_date- Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
@type payment_method_options_pix() :: %{ optional(:amount_includes_iof) => String.t() | nil, optional(:expires_after_seconds) => integer() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
amount_includes_iof- Determines if the amount includes the IOF tax. Defaults tonever. Possible values:always,never.expires_after_seconds- The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_revolut_pay() :: %{ optional(:capture_method) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session.
@type payment_method_options_samsung_pay() :: %{ optional(:capture_method) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.
@type payment_method_options_satispay() :: %{ optional(:capture_method) => String.t() | nil, optional(String.t()) => term() }
capture_method- Controls when the funds will be captured from the customer's account. Possible values:manual.
@type payment_method_options_sepa_debit() :: %{ optional(:mandate_options) => payment_method_options_sepa_debit_mandate_options() | nil, optional(:setup_future_usage) => String.t() | nil, optional(:target_date) => String.t() | nil, optional(String.t()) => term() }
mandate_options- Additional fields for Mandate creationsetup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session, on_session.
target_date- 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. Max length: 5000.
@type payment_method_options_sepa_debit_mandate_options() :: %{ optional(:reference_prefix) => map() | nil, optional(String.t()) => term() }
reference_prefix- 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'.
@type payment_method_options_sofort() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_swish() :: %{ optional(:reference) => String.t() | nil, optional(String.t()) => term() }
reference- The order reference that will be displayed to customers in the Swish application. Defaults to theidof the Payment Intent. Max length: 5000.
@type payment_method_options_twint() :: %{ optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type payment_method_options_us_bank_account() :: %{ optional(:financial_connections) => payment_method_options_us_bank_account_financial_connections() | nil, optional(:setup_future_usage) => String.t() | nil, optional(:target_date) => String.t() | nil, optional(:verification_method) => String.t() | nil, optional(String.t()) => term() }
financial_connections- Additional fields for Financial Connections Session creationsetup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none, off_session, on_session.
target_date- 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. Max length: 5000.verification_method- Verification method for the intent Possible values:automatic,instant.
@type payment_method_options_us_bank_account_financial_connections() :: %{ optional(:permissions) => [String.t()] | nil, optional(:prefetch) => [String.t()] | nil, optional(String.t()) => term() }
permissions- The list of permissions to request. If this parameter is passed, thepayment_methodpermission must be included. Valid permissions include:balances,ownership,payment_method, andtransactions.prefetch- List of data features that you would like to retrieve upon account creation.
@type payment_method_options_wechat_pay() :: %{ optional(:app_id) => String.t() | nil, optional(:client) => String.t() | nil, optional(:setup_future_usage) => String.t() | nil, optional(String.t()) => term() }
app_id- The app ID registered with WeChat Pay. Only required when client is ios or android. Max length: 5000.client- The client type that the end customer will pay from Possible values:android,ios,web.setup_future_usage- 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_present and 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_usage to help you comply with regional legislation and network rules, such as SCA. Possible values: none.
@type permissions() :: %{ optional(:update_shipping_details) => String.t() | nil, optional(String.t()) => term() }
update_shipping_details- 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 to server_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 values: client_only, server_only.
@type phone_number_collection() :: %{ optional(:enabled) => boolean() | nil, optional(String.t()) => term() }
enabled- Set totrueto enable phone number collection.
Can only be set in payment and subscription mode.
@type saved_payment_method_options() :: %{ optional(:allow_redisplay_filters) => [String.t()] | nil, optional(:payment_method_remove) => String.t() | nil, optional(:payment_method_save) => String.t() | nil, optional(String.t()) => term() }
allow_redisplay_filters- 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.payment_method_remove- Enable customers to choose if they wish to remove their saved payment methods. Disabled by default. Possible values:disabled,enabled.payment_method_save- Enable customers to choose if they wish to save their payment method for future use. Disabled by default. Possible values:disabled,enabled.
@type setup_intent_data() :: %{ optional(:description) => String.t() | nil, optional(:metadata) => %{required(String.t()) => String.t()} | nil, optional(:on_behalf_of) => String.t() | nil, optional(String.t()) => term() }
description- An arbitrary string attached to the object. Often useful for displaying to users. Max length: 1000.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.on_behalf_of- The Stripe account for which the setup is intended.
@type shipping_address_collection() :: %{ optional(:allowed_countries) => [String.t()] | nil, optional(String.t()) => term() }
allowed_countries- An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations.
@type shipping_options() :: %{ optional(:shipping_rate) => String.t() | nil, optional(:shipping_rate_data) => shipping_options_shipping_rate_data() | nil, optional(String.t()) => term() }
shipping_rate- The ID of the Shipping Rate to use for this shipping option. Max length: 5000.shipping_rate_data- Parameters to be passed to Shipping Rate creation for this shipping option.
@type shipping_options_shipping_rate_data() :: %{ optional(:delivery_estimate) => shipping_options_shipping_rate_data_delivery_estimate() | nil, optional(:display_name) => String.t() | nil, optional(:fixed_amount) => shipping_options_shipping_rate_data_fixed_amount() | nil, optional(:metadata) => %{required(String.t()) => String.t()} | nil, optional(:tax_behavior) => String.t() | nil, optional(:tax_code) => String.t() | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
delivery_estimate- The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.display_name- The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions. Max length: 100.fixed_amount- Describes a fixed amount to charge for shipping. Must be present if type isfixed_amount.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.tax_behavior- Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Possible values:exclusive,inclusive,unspecified.tax_code- A tax code ID. The Shipping tax code istxcd_92010001.type- The type of calculation to use on the shipping rate. Possible values:fixed_amount.
@type shipping_options_shipping_rate_data_delivery_estimate() :: %{ optional(:maximum) => shipping_options_shipping_rate_data_delivery_estimate_maximum() | nil, optional(:minimum) => shipping_options_shipping_rate_data_delivery_estimate_minimum() | nil, optional(String.t()) => term() }
maximum- The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.minimum- The lower bound of the estimated range. If empty, represents no lower bound.
@type shipping_options_shipping_rate_data_delivery_estimate_maximum() :: %{ optional(:unit) => String.t() | nil, optional(:value) => integer() | nil, optional(String.t()) => term() }
unit- A unit of time. Possible values:business_day,day,hour,month,week.value- Must be greater than 0.
@type shipping_options_shipping_rate_data_delivery_estimate_minimum() :: %{ optional(:unit) => String.t() | nil, optional(:value) => integer() | nil, optional(String.t()) => term() }
unit- A unit of time. Possible values:business_day,day,hour,month,week.value- Must be greater than 0.
@type shipping_options_shipping_rate_data_fixed_amount() :: %{ optional(:amount) => integer() | nil, optional(:currency) => String.t() | nil, optional(:currency_options) => %{ required(String.t()) => shipping_options_shipping_rate_data_fixed_amount_currency_options() } | nil, optional(String.t()) => term() }
amount- A non-negative integer in cents representing how much to charge.currency- Three-letter ISO currency code, in lowercase. Must be a supported currency. Format: ISO 4217 currency code.currency_options- Shipping rates defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
@type shipping_options_shipping_rate_data_fixed_amount_currency_options() :: %{ optional(:amount) => integer() | nil, optional(:tax_behavior) => String.t() | nil, optional(String.t()) => term() }
amount- A non-negative integer in cents representing how much to charge.tax_behavior- Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Possible values:exclusive,inclusive,unspecified.
@type subscription_data() :: %{ optional(:application_fee_percent) => float() | nil, optional(:billing_cycle_anchor) => integer() | nil, optional(:billing_mode) => subscription_data_billing_mode() | nil, optional(:default_tax_rates) => [String.t()] | nil, optional(:description) => String.t() | nil, optional(:invoice_settings) => subscription_data_invoice_settings() | nil, optional(:metadata) => %{required(String.t()) => String.t()} | nil, optional(:on_behalf_of) => String.t() | nil, optional(:proration_behavior) => String.t() | nil, optional(:transfer_data) => subscription_data_transfer_data() | nil, optional(:trial_end) => integer() | nil, optional(:trial_period_days) => integer() | nil, optional(:trial_settings) => subscription_data_trial_settings() | nil, optional(String.t()) => term() }
application_fee_percent- A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using theStripe-Accountheader or an OAuth key. For more information, see the application fees documentation.billing_cycle_anchor- A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter ifui_modeiscustom. Format: Unix timestamp.billing_mode- Controls how prorations and invoices for subscriptions are calculated and orchestrated.default_tax_rates- The tax rates that will apply to any subscription item that does not havetax_ratesset. Invoices created will have theirdefault_tax_ratespopulated from the subscription.description- The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in the customer portal. Max length: 500.invoice_settings- All invoices will be billed using the specified settings.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.on_behalf_of- The account on behalf of which to charge, for each of the subscription's invoices.proration_behavior- Determines how to handle prorations resulting from thebilling_cycle_anchor. If no value is passed, the default iscreate_prorations. Possible values:create_prorations,none.transfer_data- If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.trial_end- Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future. Format: Unix timestamp.trial_period_days- Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.trial_settings- Settings related to subscription trials.
@type subscription_data_billing_mode() :: %{ optional(:flexible) => subscription_data_billing_mode_flexible() | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
flexible- Configure behavior for flexible billing mode.type- Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default isflexible. Possible values:classic,flexible.
@type subscription_data_billing_mode_flexible() :: %{ optional(:proration_discounts) => String.t() | nil, optional(String.t()) => term() }
proration_discounts- Controls how invoices and invoice items display proration amounts and discount amounts. Possible values:included,itemized.
@type subscription_data_invoice_settings() :: %{ optional(:issuer) => subscription_data_invoice_settings_issuer() | nil, optional(String.t()) => term() }
issuer- The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
@type subscription_data_invoice_settings_issuer() :: %{ optional(:account) => String.t() | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
account- The connected account being referenced whentypeisaccount.type- Type of the account referenced in the request. Possible values:account,self.
@type subscription_data_transfer_data() :: %{ optional(:amount_percent) => float() | nil, optional(:destination) => String.t() | nil, optional(String.t()) => term() }
amount_percent- A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.destination- ID of an existing, connected Stripe account.
@type subscription_data_trial_settings() :: %{ optional(:end_behavior) => subscription_data_trial_settings_end_behavior() | nil, optional(String.t()) => term() }
end_behavior- Defines how the subscription should behave when the user's free trial ends.
@type subscription_data_trial_settings_end_behavior() :: %{ optional(:missing_payment_method) => String.t() | nil, optional(String.t()) => term() }
missing_payment_method- Indicates how the subscription should change when the trial ends if the user did not provide a payment method. Possible values:cancel,create_invoice,pause.
@type t() :: %Stripe.Params.Checkout.SessionCreateParams{ adaptive_pricing: adaptive_pricing() | nil, after_expiration: after_expiration() | nil, allow_promotion_codes: boolean() | nil, automatic_tax: automatic_tax() | nil, billing_address_collection: String.t() | nil, branding_settings: branding_settings() | nil, cancel_url: String.t() | nil, client_reference_id: String.t() | nil, consent_collection: consent_collection() | nil, currency: String.t() | nil, custom_fields: [custom_fields()] | nil, custom_text: custom_text() | nil, customer: String.t() | nil, customer_account: String.t() | nil, customer_creation: String.t() | nil, customer_email: String.t() | nil, customer_update: customer_update() | nil, discounts: [discounts()] | nil, excluded_payment_method_types: [String.t()] | nil, expand: [String.t()] | nil, expires_at: integer() | nil, invoice_creation: invoice_creation() | nil, line_items: [line_items()] | nil, locale: String.t() | nil, metadata: %{required(String.t()) => String.t()} | nil, mode: String.t() | nil, name_collection: name_collection() | nil, optional_items: [optional_items()] | nil, origin_context: String.t() | nil, payment_intent_data: payment_intent_data() | nil, payment_method_collection: String.t() | nil, payment_method_configuration: String.t() | nil, payment_method_data: payment_method_data() | nil, payment_method_options: payment_method_options() | nil, payment_method_types: [String.t()] | nil, permissions: permissions() | nil, phone_number_collection: phone_number_collection() | nil, redirect_on_completion: String.t() | nil, return_url: String.t() | nil, saved_payment_method_options: saved_payment_method_options() | nil, setup_intent_data: setup_intent_data() | nil, shipping_address_collection: shipping_address_collection() | nil, shipping_options: [shipping_options()] | nil, submit_type: String.t() | nil, subscription_data: subscription_data() | nil, success_url: String.t() | nil, tax_id_collection: tax_id_collection() | nil, ui_mode: String.t() | nil, wallet_options: wallet_options() | nil }
adaptive_pricing- Settings for price localization with Adaptive Pricing.after_expiration- Configure actions after a Checkout Session has expired. You can't set this parameter ifui_modeiscustom.allow_promotion_codes- Enables user redeemable promotion codes.automatic_tax- Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.billing_address_collection- Specify whether Checkout should collect the customer's billing address. Defaults toauto. Possible values:auto,required.branding_settings- The branding settings for the Checkout Session. This parameter is not allowed if ui_mode iscustom.cancel_url- If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode isembeddedorcustom.client_reference_id- 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. Max length: 200.consent_collection- Configure fields for the Checkout Session to gather active consent from customers.currency- Three-letter ISO currency code, in lowercase. Must be a supported currency. Required insetupmode whenpayment_method_typesis not set. Format: ISO 4217 currency code.custom_fields- Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter ifui_modeiscustom.custom_text- Display additional text for your customers using custom text. You can't set this parameter ifui_modeiscustom.customer- ID of an existing Customer, if one exists. Inpaymentmode, the customer’s most recently saved card payment method will be used to prefill the email, name, card details, and billing address on the Checkout page. Insubscriptionmode, the customer’s default payment method will be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.
If the Customer already has a valid email set, the email will be prefilled and not editable in Checkout.
If the Customer does not have a valid email, Checkout will set the email entered during the session on the Customer.
If blank for Checkout Sessions in subscription mode or with customer_creation set as always in payment mode, Checkout will create a new Customer object based on information provided during the payment flow.
You can set payment_intent_data.setup_future_usage to have Checkout automatically attach the payment method to the Customer you pass in for future reuse. Max length: 5000.
customer_account- ID of an existing Account, if one exists. Has the same behavior ascustomer. Max length: 5000.customer_creation- Configure whether a Checkout Session creates a Customer during Session confirmation.
When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout with customer_details.
Sessions that don't create Customers instead are grouped by guest customers in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
Can only be set in payment and setup mode. Possible values: always, if_required.
customer_email- If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once a session is complete, use thecustomerfield.customer_update- Controls what fields on Customer can be updated by the Checkout Session. Can only be provided whencustomeris provided.discounts- The coupon or promotion code to apply to this Session. Currently, only up to one may be specified.excluded_payment_method_types- 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.expand- Specifies which fields in the response should be expanded.expires_at- The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation. Format: Unix timestamp.invoice_creation- Generate a post-purchase Invoice for one-time payments.line_items- A list of items the customer is purchasing. Use this parameter to pass one-time or recurring Prices. The parameter is required forpaymentandsubscriptionmode.
For payment mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
For subscription mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.
locale- The IETF language tag of the locale Checkout is displayed in. If blank orauto, the browser's locale is used. Possible values:auto,bg,cs,da,de,el,en,en-GB,es,es-419,et,fi,fil,fr,fr-CA,hr,hu,id,it,ja,ko,lt,lv,ms,mt,nb,nl,pl,pt,pt-BR,ro,ru,sk,sl,sv,th,tr,vi,zh,zh-HK,zh-TW.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.mode- The mode of the Checkout Session. Passsubscriptionif the Checkout Session includes at least one recurring item. Possible values:payment,setup,subscription.name_collection- Controls name collection settings for the session.
You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
If a Customer is created or provided, the names can be saved to the Customer object as well.
You can't set this parameter if ui_mode is custom.
optional_items- A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring Prices.
There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
For payment mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
For subscription mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
You can't set this parameter if ui_mode is custom.
origin_context- Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter ifui_modeiscustom. Possible values:mobile_app,web.payment_intent_data- A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions inpaymentmode.payment_method_collection- Specify whether Checkout should collect a payment method. When set toif_required, Checkout will not collect a payment method when the total due for the session is 0. This may occur if the Checkout Session includes a free trial or a discount.
Can only be set in subscription mode. Defaults to always.
If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial. Possible values: always, if_required.
payment_method_configuration- The ID of the payment method configuration to use with this Checkout session. Max length: 100.payment_method_data- This parameter allows you to set some attributes on the payment method created during a Checkout session.payment_method_options- Payment-method-specific configuration.payment_method_types- A list of the types of payment methods (e.g.,card) this Checkout Session can accept.
You can omit this attribute to manage your payment methods from the Stripe Dashboard. See Dynamic Payment Methods for more details.
Read more about the supported payment methods and their requirements in our payment method details guide.
If multiple payment methods are passed, Checkout will dynamically reorder them to prioritize the most relevant payment methods based on the customer's location and other characteristics.
permissions- This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creatingembeddedorcustomsessions.
For specific permissions, please refer to their dedicated subsections, such as permissions.update_shipping_details.
phone_number_collection- Controls phone number collection settings for the session.
We recommend that you review your privacy policy and check with your legal contacts before using this feature. Learn more about collecting phone numbers with Checkout.
redirect_on_completion- This parameter applies toui_mode: embedded. Learn more about the redirect behavior of embedded sessions. Defaults toalways. Possible values:always,if_required,never.return_url- The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. This parameter is required ifui_modeisembeddedorcustomand redirect-based payment methods are enabled on the session.saved_payment_method_options- Controls saved payment method settings for the session. Only available inpaymentandsubscriptionmode.setup_intent_data- A subset of parameters to be passed to SetupIntent creation for Checkout Sessions insetupmode.shipping_address_collection- When set, provides configuration for Checkout to collect a shipping address from a customer.shipping_options- The shipping rate options to apply to this Session. Up to a maximum of 5.submit_type- Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button.submit_typecan only be specified on Checkout Sessions inpaymentorsubscriptionmode. If blank orauto,payis used. You can't set this parameter ifui_modeiscustom. Possible values:auto,book,donate,pay,subscribe.subscription_data- A subset of parameters to be passed to subscription creation for Checkout Sessions insubscriptionmode.success_url- The URL to which Stripe should send customers when payment or setup is complete. This parameter is not allowed if ui_mode isembeddedorcustom. If you'd like to use information from the successful Checkout Session on your page, read the guide on customizing your success page.tax_id_collection- Controls tax ID collection during checkout.ui_mode- The UI mode of the Session. Defaults tohosted. Possible values:custom,embedded,hosted.wallet_options- Wallet-specific configuration.
@type tax_id_collection() :: %{ optional(:enabled) => boolean() | nil, optional(:required) => String.t() | nil, optional(String.t()) => term() }
enabled- Enable tax ID collection during checkout. Defaults tofalse.required- Describes whether a tax ID is required during checkout. Defaults tonever. You can't set this parameter ifui_modeiscustom. Possible values:if_supported,never.
@type wallet_options() :: %{ optional(:link) => wallet_options_link() | nil, optional(String.t()) => term() }
link- contains details about the Link wallet options.
@type wallet_options_link() :: %{ optional(:display) => String.t() | nil, optional(String.t()) => term() }
display- Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is theautobehavior, and it is the default choice. Possible values:auto,never.