Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.
If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the succeeded
status.
Otherwise, it will transition to the requires_
status and suggest additional actions via next_
. If setup fails, the SetupIntent will transition to the requires_
status or the canceled
status if the confirmation limit is reached.
Parameters
- payment_
methodstring ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
More parameters
- confirmation_
tokenstring ID of the ConfirmationToken used to confirm this SetupIntent.
If the provided ConfirmationToken contains properties that are also being provided in this request, such as
payment_
, then the values in this request will take precedence.method - mandate_
dataassociative array This hash contains details about the mandate to create
- mandate_data.
customer_ acceptanceassociative arrayRequired This hash contains details about the customer acceptance of the Mandate.
- mandate_data.
customer_acceptance. typestringRequired The type of customer acceptance information included with the Mandate. One of
online
oroffline
. - mandate_data.
customer_acceptance. accepted_ attimestampsecret key only The time at which the customer accepted the Mandate.
- mandate_data.
customer_acceptance. offlineassociative array If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
- mandate_data.
customer_acceptance. onlineassociative array If this is a Mandate accepted online, this hash contains details about the online acceptance.
- mandate_data.
customer_acceptance. online. ip_ addressstringRequired The IP address from which the Mandate was accepted by the customer.
- mandate_data.
customer_acceptance. online. user_ agentstringRequired The user agent of the browser from which the Mandate was accepted by the customer.
- payment_
method_ dataassociative array When included, this hash creates a PaymentMethod that is set as the
payment_
value in the SetupIntent.method - payment_method_data.
typeenumRequired The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
- payment_method_data.
acss_ debitassociative array If this is an
acss_
PaymentMethod, this hash contains details about the ACSS Debit payment method.debit - payment_method_data.
acss_debit. account_ numberstringRequired Customer’s bank account number.
- payment_method_data.
acss_debit. institution_ numberstringRequired Institution number of the customer’s bank.
- payment_method_data.
acss_debit. transit_ numberstringRequired Transit number of the customer’s bank.
- payment_method_data.
affirmassociative array If this is an
affirm
PaymentMethod, this hash contains details about the Affirm payment method. - payment_method_data.
afterpay_ clearpayassociative array If this is an
AfterpayClearpay
PaymentMethod, this hash contains details about the AfterpayClearpay payment method. - payment_method_data.
alipayassociative array If this is an
Alipay
PaymentMethod, this hash contains details about the Alipay payment method. - payment_method_data.
allow_ redisplayenum This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to
unspecified
.Possible enum valuesalways
Use
always
to indicate that this payment method can always be shown to a customer in a checkout flow.limited
Use
limited
to indicate that this payment method can’t always be shown to a customer in a checkout flow. For example, it can only be shown in the context of a specific subscription.unspecified
This is the default value for payment methods where
allow_
wasn’t set.redisplay - payment_method_data.
almaassociative array If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
- payment_method_data.
amazon_ payassociative array If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
- payment_method_data.
au_ becs_ debitassociative array If this is an
au_
PaymentMethod, this hash contains details about the bank account.becs_ debit - payment_method_data.
au_becs_debit. account_ numberstringRequired The account number for the bank account.
- payment_method_data.
au_becs_debit. bsb_ numberstringRequired Bank-State-Branch number of the bank account.
- payment_method_data.
bacs_ debitassociative array If this is a
bacs_
PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.debit - payment_method_data.
bacs_debit. account_ numberstring Account number of the bank account that the funds will be debited from.
- payment_method_data.
bacs_debit. sort_ codestring Sort code of the bank account. (e.g.,
10-20-30
)
- payment_method_data.
bancontactassociative array If this is a
bancontact
PaymentMethod, this hash contains details about the Bancontact payment method. - payment_method_data.
billieassociative array If this is a
billie
PaymentMethod, this hash contains details about the Billie payment method. - payment_method_data.
billing_ detailsassociative array Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- payment_method_data.
billing_details. addressassociative array Billing address.
- payment_method_data.
billing_details. address. citystring City, district, suburb, town, or village.
- payment_method_data.
billing_details. address. countrystring Two-letter country code (ISO 3166-1 alpha-2).
- payment_method_data.
billing_details. address. line1string Address line 1 (e.g., street, PO Box, or company name).
- payment_method_data.
billing_details. address. line2string Address line 2 (e.g., apartment, suite, unit, or building).
- payment_method_data.
billing_details. address. postal_ codestring ZIP or postal code.
- payment_method_data.
billing_details. address. statestring State, county, province, or region.
- payment_method_data.
billing_details. emailstring Email address.
- payment_method_data.
billing_details. namestring Full name.
- payment_method_data.
billing_details. phonestring Billing phone number (including extension).
- payment_method_data.
billing_details. tax_ idstring Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
- payment_method_data.
blikassociative array If this is a
blik
PaymentMethod, this hash contains details about the BLIK payment method. - payment_method_data.
boletoassociative array If this is a
boleto
PaymentMethod, this hash contains details about the Boleto payment method.- payment_method_data.
boleto. tax_ idstringRequired The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
- payment_method_data.
cashappassociative array If this is a
cashapp
PaymentMethod, this hash contains details about the Cash App Pay payment method. - payment_method_data.
cryptoassociative array If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
- payment_method_data.
customer_ balanceassociative array If this is a
customer_
PaymentMethod, this hash contains details about the CustomerBalance payment method.balance - payment_method_data.
epsassociative array If this is an
eps
PaymentMethod, this hash contains details about the EPS payment method.- payment_method_data.
eps. bankstring The customer’s bank.
- payment_method_data.
fpxassociative array If this is an
fpx
PaymentMethod, this hash contains details about the FPX payment method.- payment_method_data.
fpx. bankstringRequired The customer’s bank.
- payment_method_data.
giropayassociative array If this is a
giropay
PaymentMethod, this hash contains details about the Giropay payment method. - payment_method_data.
grabpayassociative array If this is a
grabpay
PaymentMethod, this hash contains details about the GrabPay payment method. - payment_method_data.
idealassociative array If this is an
ideal
PaymentMethod, this hash contains details about the iDEAL payment method.- payment_method_data.
ideal. bankstring The customer’s bank. Only use this parameter for existing customers. Don’t use it for new customers.
- payment_method_data.
interac_ presentassociative arrayPreview feature If this is an
interac_
PaymentMethod, this hash contains details about the Interac Present payment method.present - payment_method_data.
kakao_ payassociative array If this is a
kakao_
PaymentMethod, this hash contains details about the Kakao Pay payment method.pay - payment_method_data.
klarnaassociative array If this is a
klarna
PaymentMethod, this hash contains details about the Klarna payment method.- payment_method_data.
klarna. dobassociative array Customer’s date of birth
- payment_method_data.
klarna. dob. dayintegerRequired The day of birth, between 1 and 31.
- payment_method_data.
klarna. dob. monthintegerRequired The month of birth, between 1 and 12.
- payment_method_data.
klarna. dob. yearintegerRequired The four-digit year of birth.
- payment_method_data.
konbiniassociative array If this is a
konbini
PaymentMethod, this hash contains details about the Konbini payment method. - payment_method_data.
kr_ cardassociative array If this is a
kr_
PaymentMethod, this hash contains details about the Korean Card payment method.card - payment_method_data.
linkassociative array If this is an
Link
PaymentMethod, this hash contains details about the Link payment method. - payment_method_data.
metadataassociative array 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 to
metadata
. - payment_method_data.
mobilepayassociative array If this is a
mobilepay
PaymentMethod, this hash contains details about the MobilePay payment method. - payment_method_data.
multibancoassociative array If this is a
multibanco
PaymentMethod, this hash contains details about the Multibanco payment method. - payment_method_data.
associative array If this is a
naver_
PaymentMethod, this hash contains details about the Naver Pay payment method.pay - payment_method_data.
naver_pay. enum Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to
card
.Possible enum valuescard
Use a card to fund this transaction.
points
Use Naver Pay points to fund this transaction.
- payment_method_data.
nz_ bank_ accountassociative array If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
- payment_method_data.
nz_bank_account. account_ numberstringRequired The account number for the bank account.
- payment_method_data.
nz_bank_account. bank_ codestringRequired The numeric code for the bank account’s bank.
- payment_method_data.
nz_bank_account. branch_ codestringRequired The numeric code for the bank account’s bank branch.
- payment_method_data.
nz_bank_account. suffixstringRequired The suffix of the bank account number.
- payment_method_data.
nz_bank_account. account_ holder_ namestring The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
- payment_method_data.
oxxoassociative array If this is an
oxxo
PaymentMethod, this hash contains details about the OXXO payment method. - payment_method_data.
p24associative array If this is a
p24
PaymentMethod, this hash contains details about the P24 payment method.- payment_method_data.
p24. bankenum The customer’s bank.
- payment_method_data.
pay_ by_ bankassociative array If this is a
pay_
PaymentMethod, this hash contains details about the PayByBank payment method.by_ bank - payment_method_data.
paycoassociative array If this is a
payco
PaymentMethod, this hash contains details about the PAYCO payment method. - payment_method_data.
paynowassociative array If this is a
paynow
PaymentMethod, this hash contains details about the PayNow payment method. - payment_method_data.
paypalassociative array If this is a
paypal
PaymentMethod, this hash contains details about the PayPal payment method. - payment_method_data.
paypayassociative arrayPreview feature If this is a
paypay
PaymentMethod, this hash contains details about the PayPay payment method. - payment_method_data.
pixassociative array If this is a
pix
PaymentMethod, this hash contains details about the Pix payment method. - payment_method_data.
promptpayassociative array If this is a
promptpay
PaymentMethod, this hash contains details about the PromptPay payment method. - payment_method_data.
radar_ optionsassociative array Options to configure Radar. See Radar Session for more information.
- payment_method_data.
radar_options. sessionstringsecret key only A Radar Session is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
- payment_method_data.
revolut_ payassociative array If this is a
revolut_
PaymentMethod, this hash contains details about the Revolut Pay payment method.pay - payment_method_data.
samsung_ payassociative array If this is a
samsung_
PaymentMethod, this hash contains details about the SamsungPay payment method.pay - payment_method_data.
satispayassociative array If this is a
satispay
PaymentMethod, this hash contains details about the Satispay payment method. - payment_method_data.
sepa_ debitassociative array If this is a
sepa_
PaymentMethod, this hash contains details about the SEPA debit bank account.debit - payment_method_data.
sepa_debit. ibanstringRequired IBAN of the bank account.
- payment_method_data.
sofortassociative array If this is a
sofort
PaymentMethod, this hash contains details about the SOFORT payment method.- payment_method_data.
sofort. countryenumRequired Two-letter ISO code representing the country the bank account is located in.
Possible enum valuesAT
Austria
BE
Belgium
DE
Germany
ES
Spain
IT
Italy
NL
Netherlands
- payment_method_data.
swishassociative array If this is a
swish
PaymentMethod, this hash contains details about the Swish payment method. - payment_method_data.
twintassociative array If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
- payment_method_data.
us_ bank_ accountassociative array If this is an
us_
PaymentMethod, this hash contains details about the US bank account payment method.bank_ account - payment_method_data.
us_bank_account. account_ holder_ typeenum Account holder type: individual or company.
Possible enum valuescompany
Account belongs to a company
individual
Account belongs to an individual
- payment_method_data.
us_bank_account. account_ numberstring Account number of the bank account.
- payment_method_data.
us_bank_account. account_ typeenum Account type: checkings or savings. Defaults to checking if omitted.
Possible enum valueschecking
Bank account type is checking
savings
Bank account type is savings
- payment_method_data.
us_bank_account. financial_ connections_ accountstring The ID of a Financial Connections Account to use as a payment method.
- payment_method_data.
us_bank_account. routing_ numberstring Routing number of the bank account.
- payment_method_data.
wechat_ payassociative array If this is an
wechat_
PaymentMethod, this hash contains details about the wechat_pay payment method.pay - payment_method_data.
zipassociative array If this is a
zip
PaymentMethod, this hash contains details about the Zip payment method.
- payment_
method_ optionsassociative arraysecret key only Payment method-specific configuration for this SetupIntent.
- payment_method_options.
acss_ debitassociative array If this is a
acss_
SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.debit - payment_method_options.
acss_debit. currencyenum Three-letter ISO currency code, in lowercase. Must be a supported currency.
Possible enum valuescad
Canadian dollars
usd
US dollars
- payment_method_options.
acss_debit. mandate_ optionsassociative array Additional fields for Mandate creation
- payment_method_options.
acss_debit. mandate_options. custom_ mandate_ urlstring A URL for custom mandate text to render during confirmation step. The URL will be rendered with additional GET parameters
payment_
andintent payment_
when confirming a Payment Intent, orintent_ client_ secret setup_
andintent setup_
when confirming a Setup Intent.intent_ client_ secret - payment_method_options.
acss_debit. mandate_options. default_ forarray of enums List of Stripe products where this mandate can be selected automatically.
Possible enum valuesinvoice
Enables payments for Stripe Invoices. ‘subscription’ must also be provided.
subscription
Enables payments for Stripe Subscriptions. ‘invoice’ must also be provided.
- payment_method_options.
acss_debit. mandate_options. interval_ descriptionstring Description of the mandate interval. Only required if ‘payment_schedule’ parameter is ‘interval’ or ‘combined’.
- payment_method_options.
acss_debit. mandate_options. payment_ scheduleenum Payment schedule for the mandate.
Possible enum valuescombined
Payments can be initiated at a pre-defined interval or sporadically
interval
Payments are initiated at a regular pre-defined interval
sporadic
Payments are initiated sporadically
- payment_method_options.
acss_debit. mandate_options. transaction_ typeenum Transaction type of the mandate.
Possible enum valuesbusiness
Transactions are made for business reasons
personal
Transactions are made for personal reasons
- payment_method_options.
acss_debit. verification_ methodenum Bank account verification method.
Possible enum valuesautomatic
Instant verification with fallback to microdeposits.
instant
Instant verification.
microdeposits
Verification using microdeposits.
- payment_method_options.
amazon_ payassociative array If this is a
amazon_
SetupIntent, this sub-hash contains details about the AmazonPay payment method options.pay - payment_method_options.
bacs_ debitassociative array If this is a
bacs_
SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.debit - payment_method_options.
bacs_debit. mandate_ optionsassociative array Additional fields for Mandate creation
- payment_method_options.
bacs_debit. mandate_options. reference_ prefixstringPreview feature Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: ‘/’, ‘_’, ‘-’, ‘&’, ‘.’. Cannot begin with ‘DDIC’ or ‘STRIPE’.
- payment_method_options.
cardassociative array Configuration for any card setup attempted on this SetupIntent.
- payment_method_options.
card. mandate_ optionsassociative array Configuration options for setting up an eMandate for cards issued in India.
- payment_method_options.
card. mandate_options. amountintegerRequired Amount to be charged for future payments.
- payment_method_options.
card. mandate_options. amount_ typeenumRequired One of
fixed
ormaximum
. Iffixed
, theamount
param refers to the exact amount to be charged in future payments. Ifmaximum
, the amount charged can be up to the value passed for theamount
param.Possible enum valuesfixed
maximum
- payment_method_options.
card. mandate_options. currencyenumRequired Currency in which future payments will be charged. Three-letter ISO currency code, in lowercase. Must be a supported currency.
- payment_method_options.
card. mandate_options. intervalenumRequired Specifies payment frequency. One of
day
,week
,month
,year
, orsporadic
.Possible enum valuesday
month
sporadic
week
year
- payment_method_options.
card. mandate_options. referencestringRequired Unique identifier for the mandate or subscription.
- payment_method_options.
card. mandate_options. start_ datetimestampRequired Start date of the mandate or subscription. Start date should not be lesser than yesterday.
- payment_method_options.
card. mandate_options. descriptionstring A description of the mandate or subscription that is meant to be displayed to the customer.
- payment_method_options.
card. mandate_options. end_ datetimestamp End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
- payment_method_options.
card. mandate_options. interval_ countinteger The number of intervals between payments. For example,
interval=month
andinterval_
indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional whencount=3 interval=sporadic
. - payment_method_options.
card. mandate_options. supported_ typesarray of enums Specifies the type of mandates supported. Possible values are
india
.Possible enum valuesindia
- payment_method_options.
card. networkstring Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
- payment_method_options.
card. request_ three_ d_ secureenumadvanced 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 to
automatic
. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine.Possible enum valuesany
Use
any
to manually request 3DS with a preference for africtionless
flow, increasing the likelihood of the authentication being completed without any additional input from the customer. 3DS will always be attempted if it is supported for the card, but Stripe can’t guarantee your preference because the issuer determines the ultimate authentication flow. To learn more about 3DS flows, read our guide.automatic
(Default) Our SCA Engine automatically prompts your customers for authentication based on risk level and other requirements.
challenge
Use
challenge
to request 3DS with a preference for achallenge
flow, where the customer must respond to a prompt for active authentication. Stripe can’t guarantee your preference because the issuer determines the ultimate authentication flow. To learn more about 3DS flows, read our guide. - payment_method_options.
card. three_ d_ secureassociative array If 3D Secure authentication was performed with a third-party provider, the authentication details to use for this setup.
- payment_method_options.
card. three_d_secure. ares_ trans_ statusenum The
transStatus
returned from the card Issuer’s ACS in the ARes.Possible enum valuesA
Attempts processing performed; Not authenticated/verified, but a proof of attempted authentication/verification is provided.
C
Challenge required; Additional authentication is required.
I
Informational only; 3DS Requestor challenge preference acknowledged.
N
Not authenticated/Account not verified; Transaction denied.
R
Authentication/Account verification rejected; Issuer is rejecting authentication/verification and request that authorisation not be attempted.
U
Authentication/Account verification could not be performed; Technical or other problem.
Y
Authentication verification successful.
- payment_method_options.
card. three_d_secure. cryptogramstringRequired for import 3ds The cryptogram, also known as the “authentication value” (AAV, CAVV or AEVV). This value is 20 bytes, base64-encoded into a 28-character string. (Most 3D Secure providers will return the base64-encoded version, which is what you should specify here.)
- payment_method_options.
card. three_d_secure. electronic_ commerce_ indicatorenumRequired for import 3ds on all networks except cartes bancaires The Electronic Commerce Indicator (ECI) is returned by your 3D Secure provider and indicates what degree of authentication was performed.
Possible enum values01
Mastercard variant: Attempt acknowledged.
02
Mastercard variant: Fully authenticated.
05
Fully authenticated. The customer likely proved their identity to the issuing bank.
06
Attempt acknowledged. The customer, or the entire issuing bank, is not set up for 3D Secure. Or the issuing bank is experiencing an outage.
Mastercard variant: Acquirer SCA exemption.
07
Mastercard variant: Fully authenticated recurring transaction.
- payment_method_options.
card. three_d_secure. network_ optionsassociative array Network specific 3DS fields. Network specific arguments require an explicit card brand choice. The parameter `payment_method_options.card.network`` must be populated accordingly
- payment_method_options.
card. three_d_secure. network_options. cartes_ bancairesassociative array Cartes Bancaires-specific 3DS fields.
- payment_method_options.
card. three_d_secure. network_options. cartes_bancaires. cb_ avalgoenumRequired The cryptogram calculation algorithm used by the card Issuer’s ACS to calculate the Authentication cryptogram. Also known as
cavvAlgorithm
. messageExtension: CB-AVALGOPossible enum values0
HMAC
1
CVV
2
CVV with ATN
3
Mastercard SPA
4
American Express SafeKey 1
A
AV-CB
- payment_method_options.
card. three_d_secure. network_options. cartes_bancaires. cb_ exemptionstring The exemption indicator returned from Cartes Bancaires in the ARes. message extension: CB-EXEMPTION; string (4 characters) This is a 3 byte bitmap (low significant byte first and most significant bit first) that has been Base64 encoded
- payment_method_options.
card. three_d_secure. network_options. cartes_bancaires. cb_ scoreinteger The risk score returned from Cartes Bancaires in the ARes. message extension: CB-SCORE; numeric value 0-99
- payment_method_options.
card. three_d_secure. requestor_ challenge_ indicatorstring The challenge indicator (
threeDSRequestorChallengeInd
) which was requested in the AReq sent to the card Issuer’s ACS. A string containing 2 digits from 01-99. - payment_method_options.
card. three_d_secure. transaction_ idstringRequired for import 3ds For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server Transaction ID (dsTransID).
- payment_method_options.
card. three_d_secure. versionenumRequired for import 3ds The version of 3D Secure that was performed.
- payment_method_options.
card_ presentassociative array If this is a
card_
PaymentMethod, this sub-hash contains details about the card-present payment method options.present - payment_method_options.
klarnaassociative array If this is a
klarna
PaymentMethod, this hash contains details about the Klarna payment method options.- payment_method_options.
klarna. currencyenum The currency of the SetupIntent. Three letter ISO currency code.
- payment_method_options.
klarna. on_ demandassociative array On-demand details if setting up a payment method for on-demand payments.
- payment_method_options.
klarna. on_demand. average_ amountinteger Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
- payment_method_options.
klarna. on_demand. maximum_ amountinteger The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
- payment_method_options.
klarna. on_demand. minimum_ amountinteger The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
- payment_method_options.
klarna. on_demand. purchase_ intervalenum Interval at which the customer is making purchases
Possible enum valuesday
Use
day
if you expect one or more days between charges.month
Use
month
if you expect one or more months between charges.week
Use
week
if you expect one or more weeks between charges.year
Use
year
if you expect one or more years between charges. - payment_method_options.
klarna. on_demand. purchase_ interval_ countinteger The number of
purchase_
between chargesinterval
- payment_method_options.
klarna. preferred_ localeenum Preferred language of the Klarna authorization page that the customer is redirected to
Possible enum valuescs-CZ
Czech - Czechia
da-DK
Danish - Denmark
de-AT
German - Austria
de-CH
German - Switzerland
de-DE
German - Germany
el-GR
Greek - Greece
en-AT
English - Austria
en-AU
English - Australia
en-BE
English - Belgium
en-CA
English - Canada
Show 36 more - payment_method_options.
klarna. subscriptionsarray of associative arrays Subscription details if setting up or charging a subscription
- payment_method_options.
klarna. subscriptions. intervalenumRequired Unit of time between subscription charges.
- payment_method_options.
klarna. subscriptions. next_ billingassociative arrayRequired Describes the upcoming charge for this subscription.
- payment_method_options.
klarna. subscriptions. next_billing. amountintegerRequired The amount of the next charge for the subscription.
- payment_method_options.
klarna. subscriptions. next_billing. datestringRequired The date of the next charge for the subscription in YYYY-MM-DD format.
- payment_method_options.
klarna. subscriptions. referencestringRequired A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
- payment_method_options.
klarna. subscriptions. interval_ countinteger The number of intervals (specified in the
interval
attribute) between subscription charges. For example,interval=month
andinterval_
charges every 3 months.count=3 - payment_method_options.
klarna. subscriptions. namestring Name for subscription.
- payment_method_options.
linkassociative array If this is a
link
PaymentMethod, this sub-hash contains details about the Link payment method options. - payment_method_options.
paypalassociative array If this is a
paypal
PaymentMethod, this sub-hash contains details about the PayPal payment method options.- payment_method_options.
paypal. billing_ agreement_ idstring The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
- payment_method_options.
sepa_ debitassociative array If this is a
sepa_
SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.debit - payment_method_options.
sepa_debit. mandate_ optionsassociative array Additional fields for Mandate creation
- payment_method_options.
sepa_debit. mandate_options. reference_ prefixstringPreview feature Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: ‘/’, ‘_’, ‘-’, ‘&’, ‘.’. Cannot begin with ‘STRIPE’.
- payment_method_options.
us_ bank_ accountassociative array If this is a
us_
SetupIntent, this sub-hash contains details about the US bank account payment method options.bank_ account - payment_method_options.
us_bank_account. financial_ connectionsassociative array Additional fields for Financial Connections Session creation
- payment_method_options.
us_bank_account. financial_connections. filtersassociative array Provide filters for the linked accounts that the customer can select for the payment method.
- payment_method_options.
us_bank_account. financial_connections. filters. account_ subcategoriesarray of strings The account subcategories to use to filter for selectable accounts. Valid subcategories are
checking
andsavings
.
- payment_method_options.
us_bank_account. financial_connections. permissionsarray of strings The list of permissions to request. If this parameter is passed, the
payment_
permission must be included. Valid permissions include:method balances
,ownership
,payment_
, andmethod transactions
. - payment_method_options.
us_bank_account. financial_connections. prefetcharray of enums List of data features that you would like to retrieve upon account creation.
Possible enum valuesbalances
Requests to prefetch balance data on accounts collected in this session.
ownership
Requests to prefetch ownership data on accounts collected in this session.
transactions
Requests to prefetch transaction data on accounts collected in this session.
- payment_method_options.
us_bank_account. financial_connections. return_ urlstring For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
- payment_method_options.
us_bank_account. mandate_ optionsassociative array Additional fields for Mandate creation
- payment_method_options.
us_bank_account. mandate_options. collection_ methodenum The method used to collect offline mandate customer acceptance.
Possible enum valuespaper
Mandate customer acceptance was collected using a paper document
- payment_method_options.
us_bank_account. networksassociative array Additional fields for network related functions
- payment_method_options.
us_bank_account. networks. requestedarray of enums Triggers validations to run across the selected networks
Possible enum valuesach
us_
domestic_ wire
- payment_method_options.
us_bank_account. verification_ methodenum Bank account verification method.
Possible enum valuesautomatic
Instant verification with fallback to microdeposits.
instant
Instant verification only.
microdeposits
Verification using microdeposits. Cannot be used with Stripe Checkout, Hosted Invoices, or Payment Element.
- return_
urlstring The URL to redirect your customer back to after they authenticate on the payment method’s app or site. If you’d prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter is only used for cards and other redirect-based payment methods.
- use_
stripe_ sdkboolean Set to
true
when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
Returns
Returns the resulting SetupIntent after all possible transitions are applied.
{ "id": "seti_1Mm2cBLkdIwHu7ixaiKW3ElR", "object": "setup_intent", "application": null, "cancellation_reason": null, "client_secret": "seti_1Mm2cBLkdIwHu7ixaiKW3ElR_secret_NX6phB7HbSmlkpqzKZ3Bxr7uXFRf9Jg", "created": 1678918571, "customer": null, "description": null, "flow_directions": null, "last_setup_error": null, "latest_attempt": "setatt_1Mm2cBLkdIwHu7ixdEp1VkXJ", "livemode": false, "mandate": null, "metadata": {}, "next_action": null, "on_behalf_of": null, "payment_method": "pm_1Mm2cBLkdIwHu7ixGoOfZSsV", "payment_method_options": { "card": { "mandate_options": null, "network": null, "request_three_d_secure": "automatic" } }, "payment_method_types": [ "card" ], "single_use_mandate": null, "status": "succeeded", "usage": "off_session"}