PaymentMethod objects represent your customer’s payment instruments. You can use them withPaymentIntents to collect payments or save them to Customer objects to store instrument details for future payments.
Related guides:Payment Methods andMore Payment Scenarios.
Attributes
- idstring
Unique identifier for the object.
- billing_
detailsobject Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- customernullable stringExpandable
The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
- metadatanullable object
Set ofkey-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- typeenum
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 enum valuesacss_debit Pre-authorized debit payments are used to debit Canadian bank accounts through the Automated Clearing Settlement System (ACSS).
affirmAffirm is a buy now, pay later payment method in the US.
afterpay_clearpay Afterpay / Clearpay is a buy now, pay later payment method used in Australia, Canada, France, New Zealand, Spain, the UK, and the US.
alipayAlipay is a digital wallet payment method used in China.
almaAlma is a Buy Now, Pay Later payment method that lets customers pay in 2, 3, or 4 installments.
amazon_pay Amazon Pay is a Wallet payment method that lets hundreds of millions of Amazon customers pay their way, every day.
au_becs_ debit BECS Direct Debit is used to debit Australian bank accounts through the Bulk Electronic Clearing System (BECS).
bacs_debit Bacs Direct Debit is used to debit UK bank accounts.
bancontactBancontact is a bank redirect payment method used in Belgium.
billieBillie is a payment method.
Show 44 more
More attributes
- objectstring
- acss_
debitnullable object - affirmnullable object
- afterpay_
clearpaynullable object - alipaynullable object
- allow_
redisplaynullable enum - almanullable object
- amazon_
paynullable object - au_
becs_ debitnullable object - bacs_
debitnullable object - bancontactnullable object
- billienullable object
- bliknullable object
- boletonullable object
- cardnullable object
- card_
presentnullable object - cashappnullable object
- createdtimestamp
- cryptonullable object
- customnullable object
- customer_
balancenullable object - epsnullable object
- fpxnullable object
- giropaynullable object
- grabpaynullable object
- idealnullable object
- interac_
presentnullable objectPreview feature - kakao_
paynullable object - klarnanullable object
- konbininullable object
- kr_
cardnullable object - linknullable object
- livemodeboolean
- mb_
waynullable object - mobilepaynullable object
- multibanconullable object
- naver_
paynullable object - nz_
bank_ accountnullable object - oxxonullable object
- p24nullable object
- pay_
by_ banknullable object - payconullable object
- paynownullable object
- paypalnullable object
- paypaynullable objectPreview feature
- paytonullable object
- pixnullable object
- promptpaynullable object
- radar_
optionsnullable object - revolut_
paynullable object - samsung_
paynullable object - satispaynullable object
- sepa_
debitnullable object - sofortnullable object
- swishnullable object
- twintnullable object
- us_
bank_ accountnullable object - wechat_
paynullable object - zipnullable object
{"id":"pm_1Q0PsIJvEtkwdCNYMSaVuRz6","object":"payment_method","allow_redisplay":"unspecified","billing_details":{"address":{"city":null,"country":null,"line1":null,"line2":null,"postal_code":null,"state":null},"email":null,"name":"John Doe","phone":null},"created":1726673582,"customer":null,"livemode":false,"metadata":{},"type":"us_bank_account","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"STRIPE TEST BANK","financial_connections_account":null,"fingerprint":"LstWJFsCK7P349Bg","last4":"6789","networks":{"preferred":"ach","supported":["ach"]},"routing_number":"110000000","status_details":{}}}Creates a PaymentMethod object. Read theStripe.js reference to learn how to create PaymentMethods via Stripe.js.
Instead of creating a PaymentMethod directly, we recommend using thePaymentIntents API to accept a payment immediately or theSetupIntent API to collect payment method details ahead of a future payment.
Parameters
- 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.
Possible enum valuesacss_debit Pre-authorized debit payments are used to debit Canadian bank accounts through the Automated Clearing Settlement System (ACSS).
affirmAffirm is a buy now, pay later payment method in the US.
afterpay_clearpay Afterpay / Clearpay is a buy now, pay later payment method used in Australia, Canada, France, New Zealand, Spain, the UK, and the US.
alipayAlipay is a digital wallet payment method used in China.
almaAlma is a Buy Now, Pay Later payment method that lets customers pay in 2, 3, or 4 installments.
amazon_pay Amazon Pay is a Wallet payment method that lets hundreds of millions of Amazon customers pay their way, every day.
au_becs_ debit BECS Direct Debit is used to debit Australian bank accounts through the Bulk Electronic Clearing System (BECS).
bacs_debit Bacs Direct Debit is used to debit UK bank accounts.
bancontactBancontact is a bank redirect payment method used in Belgium.
billieBillie is a payment method.
Show 44 more - billing_
detailsobject Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- metadataobject
Set ofkey-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.
More parameters
- acss_
debitobject - affirmobject
- afterpay_
clearpayobject - alipayobject
- allow_
redisplayenum - almaobject
- amazon_
payobject - au_
becs_ debitobject - bacs_
debitobject - bancontactobject
- billieobject
- blikobject
- boletoobject
- cardobject
- cashappobject
- cryptoobject
- customobject
- customer_
balanceobject - epsobject
- fpxobject
- giropayobject
- grabpayobject
- idealobject
- interac_
presentobjectPreview feature - kakao_
payobject - klarnaobject
- konbiniobject
- kr_
cardobject - linkobject
- mb_
wayobject - mobilepayobject
- multibancoobject
- naver_
payobject - nz_
bank_ accountobject - oxxoobject
- p24object
- pay_
by_ bankobject - paycoobject
- paynowobject
- paypalobject
- paypayobjectPreview feature
- paytoobject
- pixobject
- promptpayobject
- radar_
optionsobject - revolut_
payobject - samsung_
payobject - satispayobject
- sepa_
debitobject - sofortobject
- swishobject
- twintobject
- us_
bank_ accountobject - wechat_
payobject - zipobject
Returns
Returns a PaymentMethod object.
curl https://api.stripe.com/v1/payment_methods \ -u"sk_test_09l3shT...CzzZZsiLl2vAsk_test_09l3shTSTKHYCzzZZsiLl2vA:" \ -d type=us_bank_account \ -d"us_bank_account[account_holder_type]"=individual \ -d"us_bank_account[account_number]"=000123456789 \ -d"us_bank_account[routing_number]"=110000000 \ -d"billing_details[name]"="John Doe"{"id":"pm_1Q0PsIJvEtkwdCNYMSaVuRz6","object":"payment_method","allow_redisplay":"unspecified","billing_details":{"address":{"city":null,"country":null,"line1":null,"line2":null,"postal_code":null,"state":null},"email":null,"name":"John Doe","phone":null},"created":1726673582,"customer":null,"livemode":false,"metadata":{},"type":"us_bank_account","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"STRIPE TEST BANK","financial_connections_account":null,"fingerprint":"LstWJFsCK7P349Bg","last4":"6789","networks":{"preferred":"ach","supported":["ach"]},"routing_number":"110000000","status_details":{}}}Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
Parameters
- billing_
detailsobject Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- metadataobject
Set ofkey-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.
More parameters
- allow_
redisplayenum - cardobject
- paytoobject
- us_
bank_ accountobject
Returns
Returns a PaymentMethod object.
{"id":"pm_1Q0PsIJvEtkwdCNYMSaVuRz6","object":"payment_method","allow_redisplay":"unspecified","billing_details":{"address":{"city":null,"country":null,"line1":null,"line2":null,"postal_code":null,"state":null},"email":null,"name":"John Doe","phone":null},"created":1726673582,"customer":null,"livemode":false,"metadata":{"order_id":"6735"},"type":"us_bank_account","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"STRIPE TEST BANK","financial_connections_account":null,"fingerprint":"LstWJFsCK7P349Bg","last4":"6789","networks":{"preferred":"ach","supported":["ach"]},"routing_number":"110000000","status_details":{}}}Retrieves a PaymentMethod object for a given Customer.
Parameters
No parameters.
Returns
Returns a PaymentMethod object.
{"id":"pm_1NVChw2eZvKYlo2CHxiM5E2E","object":"payment_method","billing_details":{"address":{"city":null,"country":null,"line1":null,"line2":null,"postal_code":null,"state":null},"email":null,"name":null,"phone":null},"card":{"brand":"visa","checks":{"address_line1_check":null,"address_postal_code_check":null,"cvc_check":"pass"},"country":"US","exp_month":12,"exp_year":2034,"fingerprint":"Xt5EWLLDS7FJjR1c","funding":"credit","generated_from":null,"last4":"4242","networks":{"available":["visa"],"preferred":null},"three_d_secure_usage":{"supported":true},"wallet":null},"created":1689682128,"customer":"cus_9s6XKzkNRiz8i3","livemode":false,"metadata":{},"redaction":null,"type":"card"}