POST /v1/payment_methods
Creates a PaymentMethod object. Read the Stripe.js reference to learn how to create PaymentMethods via Stripe.js.
Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a payment immediately or the SetupIntent API to collect payment method details ahead of a future payment.
Servers
- https://api.stripe.com/
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
swish |
Object | No |
If this is a |
metadata |
Object | No |
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 |
multibanco |
Object | No |
If this is a |
affirm |
Object | No |
If this is an |
payment_method |
String | No |
The PaymentMethod to share. |
mobilepay |
Object | No |
If this is a |
paynow |
Object | No |
If this is a |
billing_details |
Object | No |
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. |
billing_details.email |
No | ||
billing_details.name |
No | ||
billing_details.tax_id |
String | No | |
billing_details.phone |
No | ||
billing_details.address |
No | ||
customer_balance |
Object | No |
If this is a |
pix |
Object | No |
If this is a |
sofort |
Object | No |
If this is a |
sofort.country |
String | Yes |
Possible values:
|
alipay |
Object | No |
If this is an |
interac_present |
Object | No |
If this is an |
cashapp |
Object | No |
If this is a |
zip |
Object | No |
If this is a |
type |
String | No |
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. Possible values:
|
afterpay_clearpay |
Object | No |
If this is an |
twint |
Object | No |
If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. |
eps |
Object | No |
If this is an |
eps.bank |
String | No |
Possible values:
|
us_bank_account |
Object | No |
If this is an |
us_bank_account.routing_number |
String | No | |
us_bank_account.account_number |
String | No | |
us_bank_account.financial_connections_account |
String | No | |
us_bank_account.account_holder_type |
String | No |
Possible values:
|
us_bank_account.account_type |
String | No |
Possible values:
|
au_becs_debit |
Object | No |
If this is an |
au_becs_debit.account_number |
String | Yes | |
au_becs_debit.bsb_number |
String | Yes | |
konbini |
Object | No |
If this is a |
oxxo |
Object | No |
If this is an |
bancontact |
Object | No |
If this is a |
p24 |
Object | No |
If this is a |
p24.bank |
String | No |
Possible values:
|
expand[] |
Array | No |
Specifies which fields in the response should be expanded. |
allow_redisplay |
String | No |
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 Possible values:
|
card |
No |
If this is a |
|
radar_options |
Object | No |
Options to configure Radar. See Radar Session for more information. |
radar_options.session |
String | No | |
ideal |
Object | No |
If this is an |
ideal.bank |
String | No |
Possible values:
|
amazon_pay |
Object | No |
If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. |
paypal |
Object | No |
If this is a |
bacs_debit |
Object | No |
If this is a |
bacs_debit.sort_code |
String | No | |
bacs_debit.account_number |
String | No | |
naver_pay |
Object | No |
If this is a |
naver_pay.funding |
String | No |
Possible values:
|
klarna |
Object | No |
If this is a |
klarna.dob |
Object | No | |
klarna.dob.day |
Integer | Yes | |
klarna.dob.month |
Integer | Yes | |
klarna.dob.year |
Integer | Yes | |
acss_debit |
Object | No |
If this is an |
acss_debit.institution_number |
String | Yes | |
acss_debit.transit_number |
String | Yes | |
acss_debit.account_number |
String | Yes | |
blik |
Object | No |
If this is a |
payco |
Object | No |
If this is a |
wechat_pay |
Object | No |
If this is an |
pay_by_bank |
Object | No |
If this is a |
promptpay |
Object | No |
If this is a |
giropay |
Object | No |
If this is a |
kakao_pay |
Object | No |
If this is a |
crypto |
Object | No |
If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. |
alma |
Object | No |
If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. |
link |
Object | No |
If this is an |
satispay |
Object | No |
If this is a |
fpx |
Object | No |
If this is an |
fpx.bank |
String | Yes |
Possible values:
|
revolut_pay |
Object | No |
If this is a |
billie |
Object | No |
If this is a |
sepa_debit |
Object | No |
If this is a |
sepa_debit.iban |
String | Yes | |
kr_card |
Object | No |
If this is a |
customer |
String | No |
The |
samsung_pay |
Object | No |
If this is a |
nz_bank_account |
Object | No |
If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. |
nz_bank_account.bank_code |
String | Yes | |
nz_bank_account.branch_code |
String | Yes | |
nz_bank_account.account_number |
String | Yes | |
nz_bank_account.account_holder_name |
String | No | |
nz_bank_account.reference |
String | No | |
nz_bank_account.suffix |
String | Yes | |
grabpay |
Object | No |
If this is a |
boleto |
Object | No |
If this is a |
boleto.tax_id |
String | Yes |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.