Attributes
- idstring
Unique identifier for the object.
- billing_
details associative arrayBilling 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 associative 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.
- 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).
affirm
Affirm 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.
alipay
Alipay is a digital wallet payment method used in China.
alma
Alma 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.
bancontact
Bancontact is a bank redirect payment method used in Belgium.
billie
Billie is a payment method.
Show 79 more
More attributes
- objectstring
- acss_
debit nullable associative array - affirmnullable associative array
- afterpay_
clearpay nullable associative array - alipaynullable associative array
- allow_
redisplay nullable enum - almanullable associative array
- amazon_
pay nullable associative array - au_
becs_ nullable associative arraydebit - bacs_
debit nullable associative array - bancontactnullable associative array
- billienullable associative array
- bliknullable associative array
- boletonullable associative array
- cardnullable associative array
- card_
present nullable associative array - cashappnullable associative array
- createdtimestamp
- customer_
balance nullable associative array - epsnullable associative array
- fpxnullable associative array
- giropaynullable associative array
- grabpaynullable associative array
- idealnullable associative array
- interac_
present nullable associative arrayPreview feature - kakao_
pay nullable associative array - klarnanullable associative array
- konbininullable associative array
- kr_
card nullable associative array - linknullable associative array
- livemodeboolean
- mobilepaynullable associative array
- multibanconullable associative array
- naver_
pay nullable associative array - nz_
bank_ nullable associative arrayaccount - oxxonullable associative array
- p24nullable associative array
- pay_
by_ nullable associative arrayPreview featurebank - payconullable associative array
- paynownullable associative array
- paypalnullable associative array
- pixnullable associative array
- promptpaynullable associative array
- radar_
options nullable associative array - revolut_
pay nullable associative array - samsung_
pay nullable associative array - satispaynullable associative array
- sepa_
debit nullable associative array - sofortnullable associative array
- swishnullable associative array
- twintnullable associative array
- us_
bank_ nullable associative arrayaccount - wechat_
pay nullable associative array - zipnullable associative array
{ "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 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.
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).
affirm
Affirm 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.
alipay
Alipay is a digital wallet payment method used in China.
alma
Alma 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.
bancontact
Bancontact is a bank redirect payment method used in Belgium.
billie
Billie is a payment method.
Show 78 more - billing_
details associative arrayBilling information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- 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
.
More parameters
- acss_
debit associative array - affirmassociative array
- afterpay_
clearpay associative array - alipayassociative array
- allow_
redisplay enum - almaassociative array
- amazon_
pay associative array - au_
becs_ associative arraydebit - bacs_
debit associative array - bancontactassociative array
- billieassociative array
- blikassociative array
- boletoassociative array
- cardassociative array
- cashappassociative array
- customer_
balance associative array - epsassociative array
- fpxassociative array
- giropayassociative array
- grabpayassociative array
- idealassociative array
- interac_
present associative arrayPreview feature - kakao_
pay associative array - klarnaassociative array
- konbiniassociative array
- kr_
card associative array - linkassociative array
- mobilepayassociative array
- multibancoassociative array
- naver_
pay associative array - nz_
bank_ associative arrayaccount - oxxoassociative array
- p24associative array
- pay_
by_ associative arrayPreview featurebank - paycoassociative array
- paynowassociative array
- paypalassociative array
- pixassociative array
- promptpayassociative array
- radar_
options associative array - revolut_
pay associative array - samsung_
pay associative array - satispayassociative array
- sepa_
debit associative array - sofortassociative array
- swishassociative array
- twintassociative array
- us_
bank_ associative arrayaccount - wechat_
pay associative array - zipassociative array
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": {}, "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 a customer to be updated.
Parameters
- billing_
details associative arrayBilling information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- 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
.
More parameters
- allow_
redisplay enum - cardassociative array
- linkassociative array
- pay_
by_ associative arrayPreview featurebank - us_
bank_ associative arrayaccount
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"}
Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use Retrieve a Customer’s PaymentMethods
Parameters
No parameters.
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": {}, "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": {} }}