PaymentMethodConfigurations control which payment methods are displayed to your customers when you don’t explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios.
There are two types of PaymentMethodConfigurations. Which is used depends on the charge type:
Direct configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect.
Child configurations apply to payments created on your connected accounts using direct charges, and charges with the on_behalf_of parameter.
Child configurations have a parent
that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account’s associated child configuration. Parent configurations are managed in the dashboard and are not available in this API.
Related guides:
Attributes
- idstringretrievable with publishable key
Unique identifier for the object.
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- activeboolean
Whether the configuration can be used for new payments.
- applicationnullable string
For child configs, the Connect application associated with the configuration.
- is_
defaultboolean The default configuration is used whenever a payment method configuration is not specified.
- namestring
The configuration’s name.
- parentnullable string
For child configs, the configuration’s parent configuration.
More attributes
- acss_
debitnullable associative array - affirmnullable associative array
- afterpay_
clearpaynullable associative array - alipaynullable associative array
- almanullable associative array
- amazon_
paynullable associative array - apple_
paynullable associative array - au_
becs_ debitnullable associative array - bacs_
debitnullable associative array - bancontactnullable associative array
- billienullable associative array
- bliknullable associative array
- boletonullable associative array
- cardnullable associative array
- cartes_
bancairesnullable associative array - cashappnullable associative array
- customer_
balancenullable associative array - epsnullable associative array
- fpxnullable associative array
- giropaynullable associative array
- google_
paynullable associative array - grabpaynullable associative array
- idealnullable associative array
- jcbnullable associative array
- kakao_
paynullable associative array - klarnanullable associative array
- konbininullable associative array
- kr_
cardnullable associative array - linknullable associative array
- livemodeboolean
- mobilepaynullable associative array
- multibanconullable associative array
- naver_
paynullable associative array - nz_
bank_ accountnullable associative array - oxxonullable associative array
- p24nullable associative array
- pay_
by_ banknullable associative array - payconullable associative array
- paynownullable associative array
- paypalnullable associative array
- pixnullable associative array
- promptpaynullable associative array
- revolut_
paynullable associative array - samsung_
paynullable associative array - satispaynullable associative array
- sepa_
debitnullable associative array - sofortnullable associative array
- swishnullable associative array
- twintnullable associative array
- us_
bank_ accountnullable associative array - wechat_
paynullable associative array - zipnullable associative array
{ "id": "pmc_abcdef", "object": "payment_method_configuration", "acss_debit": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "active": true, "affirm": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "afterpay_clearpay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "alipay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "apple_pay": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "bancontact": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "card": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "cartes_bancaires": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "eps": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "giropay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "google_pay": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "ideal": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "is_default": true, "klarna": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "link": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "livemode": false, "name": "Default", "p24": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "sepa_debit": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "sofort": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "us_bank_account": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "wechat_pay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }}
Creates a payment method configuration
Parameters
- namestringRequired unless parent is provided
Configuration name.
- parentstringRequired unless name is provided
Configuration’s parent configuration. Specify to create a child configuration.
More parameters
- acss_
debitassociative array - affirmassociative array
- afterpay_
clearpayassociative array - alipayassociative array
- almaassociative array
- amazon_
payassociative array - apple_
payassociative array - apple_
pay_ laterassociative array - au_
becs_ debitassociative array - bacs_
debitassociative array - bancontactassociative array
- billieassociative array
- blikassociative array
- boletoassociative array
- cardassociative array
- cartes_
bancairesassociative array - cashappassociative array
- customer_
balanceassociative array - epsassociative array
- fpxassociative array
- giropayassociative array
- google_
payassociative array - grabpayassociative array
- idealassociative array
- jcbassociative array
- kakao_
payassociative array - klarnaassociative array
- konbiniassociative array
- kr_
cardassociative array - linkassociative array
- mobilepayassociative array
- multibancoassociative array
- naver_
payassociative array - nz_
bank_ accountassociative array - oxxoassociative array
- p24associative array
- pay_
by_ bankassociative array - paycoassociative array
- paynowassociative array
- paypalassociative array
- pixassociative array
- promptpayassociative array
- revolut_
payassociative array - samsung_
payassociative array - satispayassociative array
- sepa_
debitassociative array - sofortassociative array
- swishassociative array
- twintassociative array
- us_
bank_ accountassociative array - wechat_
payassociative array - zipassociative array
Returns
Returns the payment method configuration object
{ "id": "pmc_abcdef", "object": "payment_method_configuration", "acss_debit": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "active": true, "affirm": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "afterpay_clearpay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "alipay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "apple_pay": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "bancontact": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "card": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "cartes_bancaires": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "eps": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "giropay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "google_pay": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "ideal": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "is_default": true, "klarna": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "link": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "livemode": false, "name": "Default", "p24": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "sepa_debit": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "sofort": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "us_bank_account": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "wechat_pay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }}
Update payment method configuration
Parameters
- activeboolean
Whether the configuration can be used for new payments.
- namestring
Configuration name.
More parameters
- acss_
debitassociative array - affirmassociative array
- afterpay_
clearpayassociative array - alipayassociative array
- almaassociative array
- amazon_
payassociative array - apple_
payassociative array - apple_
pay_ laterassociative array - au_
becs_ debitassociative array - bacs_
debitassociative array - bancontactassociative array
- billieassociative array
- blikassociative array
- boletoassociative array
- cardassociative array
- cartes_
bancairesassociative array - cashappassociative array
- customer_
balanceassociative array - epsassociative array
- fpxassociative array
- giropayassociative array
- google_
payassociative array - grabpayassociative array
- idealassociative array
- jcbassociative array
- kakao_
payassociative array - klarnaassociative array
- konbiniassociative array
- kr_
cardassociative array - linkassociative array
- mobilepayassociative array
- multibancoassociative array
- naver_
payassociative array - nz_
bank_ accountassociative array - oxxoassociative array
- p24associative array
- pay_
by_ bankassociative array - paycoassociative array
- paynowassociative array
- paypalassociative array
- pixassociative array
- promptpayassociative array
- revolut_
payassociative array - samsung_
payassociative array - satispayassociative array
- sepa_
debitassociative array - sofortassociative array
- swishassociative array
- twintassociative array
- us_
bank_ accountassociative array - wechat_
payassociative array - zipassociative array
Returns
An object with the updated account payment method configuration
{ "id": "pmc_abcdef", "object": "payment_method_configuration", "acss_debit": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "active": true, "affirm": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "afterpay_clearpay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "alipay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "apple_pay": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "bancontact": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "card": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "cartes_bancaires": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "eps": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "giropay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "google_pay": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "ideal": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "is_default": true, "klarna": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "link": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "livemode": false, "name": "Default", "p24": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "sepa_debit": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "sofort": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "us_bank_account": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "wechat_pay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }}
Retrieve payment method configuration
Parameters
No parameters.
Returns
A payment method configuration object.
{ "id": "pmc_abcdef", "object": "payment_method_configuration", "acss_debit": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "active": true, "affirm": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "afterpay_clearpay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "alipay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "apple_pay": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "bancontact": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "card": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "cartes_bancaires": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "eps": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "giropay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "google_pay": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "ideal": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "is_default": true, "klarna": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "link": { "available": true, "display_preference": { "overridable": null, "preference": "on", "value": "on" } }, "livemode": false, "name": "Default", "p24": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "sepa_debit": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "sofort": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "us_bank_account": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }, "wechat_pay": { "available": false, "display_preference": { "overridable": null, "preference": "off", "value": "off" } }}
- Need help? Contact Support.
- Join our early access program.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.
- Powered by Markdoc