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 dictionary - affirmnullable dictionary
- afterpay_
clearpaynullable dictionary - alipaynullable dictionary
- almanullable dictionary
- amazon_
paynullable dictionary - apple_
paynullable dictionary - au_
becs_ debitnullable dictionary - bacs_
debitnullable dictionary - bancontactnullable dictionary
- billienullable dictionary
- bliknullable dictionary
- boletonullable dictionary
- cardnullable dictionary
- cartes_
bancairesnullable dictionary - cashappnullable dictionary
- customer_
balancenullable dictionary - epsnullable dictionary
- fpxnullable dictionary
- giropaynullable dictionary
- google_
paynullable dictionary - grabpaynullable dictionary
- idealnullable dictionary
- jcbnullable dictionary
- kakao_
paynullable dictionary - klarnanullable dictionary
- konbininullable dictionary
- kr_
cardnullable dictionary - linknullable dictionary
- livemodeboolean
- mobilepaynullable dictionary
- multibanconullable dictionary
- naver_
paynullable dictionary - nz_
bank_ accountnullable dictionary - oxxonullable dictionary
- p24nullable dictionary
- pay_
by_ banknullable dictionary - payconullable dictionary
- paynownullable dictionary
- paypalnullable dictionary
- pixnullable dictionary
- promptpaynullable dictionary
- revolut_
paynullable dictionary - samsung_
paynullable dictionary - satispaynullable dictionary
- sepa_
debitnullable dictionary - sofortnullable dictionary
- swishnullable dictionary
- twintnullable dictionary
- us_
bank_ accountnullable dictionary - wechat_
paynullable dictionary - zipnullable dictionary
{ "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_
debitdictionary - affirmdictionary
- afterpay_
clearpaydictionary - alipaydictionary
- almadictionary
- amazon_
paydictionary - apple_
paydictionary - apple_
pay_ laterdictionary - au_
becs_ debitdictionary - bacs_
debitdictionary - bancontactdictionary
- billiedictionary
- blikdictionary
- boletodictionary
- carddictionary
- cartes_
bancairesdictionary - cashappdictionary
- customer_
balancedictionary - epsdictionary
- fpxdictionary
- giropaydictionary
- google_
paydictionary - grabpaydictionary
- idealdictionary
- jcbdictionary
- kakao_
paydictionary - klarnadictionary
- konbinidictionary
- kr_
carddictionary - linkdictionary
- mobilepaydictionary
- multibancodictionary
- naver_
paydictionary - nz_
bank_ accountdictionary - oxxodictionary
- p24dictionary
- pay_
by_ bankdictionary - paycodictionary
- paynowdictionary
- paypaldictionary
- pixdictionary
- promptpaydictionary
- revolut_
paydictionary - samsung_
paydictionary - satispaydictionary
- sepa_
debitdictionary - sofortdictionary
- swishdictionary
- twintdictionary
- us_
bank_ accountdictionary - wechat_
paydictionary - zipdictionary
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_
debitdictionary - affirmdictionary
- afterpay_
clearpaydictionary - alipaydictionary
- almadictionary
- amazon_
paydictionary - apple_
paydictionary - apple_
pay_ laterdictionary - au_
becs_ debitdictionary - bacs_
debitdictionary - bancontactdictionary
- billiedictionary
- blikdictionary
- boletodictionary
- carddictionary
- cartes_
bancairesdictionary - cashappdictionary
- customer_
balancedictionary - epsdictionary
- fpxdictionary
- giropaydictionary
- google_
paydictionary - grabpaydictionary
- idealdictionary
- jcbdictionary
- kakao_
paydictionary - klarnadictionary
- konbinidictionary
- kr_
carddictionary - linkdictionary
- mobilepaydictionary
- multibancodictionary
- naver_
paydictionary - nz_
bank_ accountdictionary - oxxodictionary
- p24dictionary
- pay_
by_ bankdictionary - paycodictionary
- paynowdictionary
- paypaldictionary
- pixdictionary
- promptpaydictionary
- revolut_
paydictionary - samsung_
paydictionary - satispaydictionary
- sepa_
debitdictionary - sofortdictionary
- swishdictionary
- twintdictionary
- us_
bank_ accountdictionary - wechat_
paydictionary - zipdictionary
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" } }}