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, value is "payment_method_configuration"
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_
default booleanThe 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_
debit nullable object - affirmnullable object
- afterpay_
clearpay nullable object - alipaynullable object
- almanullable object
- amazon_
pay nullable object - apple_
pay nullable object - au_
becs_ nullable objectdebit - bacs_
debit nullable object - bancontactnullable object
- billienullable object
- bizumnullable object
- bliknullable object
- boletonullable object
- cardnullable object
- cartes_
bancaires nullable object - cashappnullable object
- cryptonullable object
- customer_
balance nullable object - epsnullable object
- fpxnullable object
- giropaynullable object
- google_
pay nullable object - grabpaynullable object
- idealnullable object
- jcbnullable object
- kakao_
pay nullable object - klarnanullable object
- konbininullable object
- kr_
card nullable object - linknullable object
- livemodeboolean
- mb_
way nullable object - mobilepaynullable object
- multibanconullable object
- naver_
pay nullable object - nz_
bank_ nullable objectaccount - oxxonullable object
- p24nullable object
- pay_
by_ nullable objectbank - payconullable object
- paynownullable object
- paypalnullable object
- paypaynullable object
- paytonullable object
- pixnullable object
- promptpaynullable object
- revolut_
pay nullable object - samsung_
pay nullable object - satispaynullable object
- scalapaynullable object
- sepa_
debit nullable object - sequranullable objectPreview feature
- sofortnullable object
- sunbitnullable object
- swishnullable object
- twintnullable object
- upinullable object
- us_
bank_ nullable objectaccount - wechat_
pay nullable object - zipnullable 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" } }}Creates a payment method configuration
Parameters
- namestringRequired unless parent is provided
Configuration name.
The maximum length is 100 characters.
- parentstringRequired unless name is provided
Configuration’s parent configuration. Specify to create a child configuration.
The maximum length is 100 characters.
More parameters
- acss_
debit object - affirmobject
- afterpay_
clearpay object - alipayobject
- almaobject
- amazon_
pay object - apple_
pay object - apple_
pay_ objectlater - au_
becs_ objectdebit - bacs_
debit object - bancontactobject
- billieobject
- bizumobject
- blikobject
- boletoobject
- cardobject
- cartes_
bancaires object - cashappobject
- cryptoobject
- customer_
balance object - epsobject
- fpxobject
- fr_
meal_ objectvoucher_ conecs - giropayobject
- google_
pay object - grabpayobject
- idealobject
- jcbobject
- kakao_
pay object - klarnaobject
- konbiniobject
- kr_
card object - linkobject
- mb_
way object - mobilepayobject
- multibancoobject
- naver_
pay object - nz_
bank_ objectaccount - oxxoobject
- p24object
- pay_
by_ objectbank - paycoobject
- paynowobject
- paypalobject
- paypayobject
- paytoobject
- pixobject
- promptpayobject
- revolut_
pay object - samsung_
pay object - satispayobject
- scalapayobject
- sepa_
debit object - sequraobjectPreview feature
- sofortobject
- sunbitobject
- swishobject
- twintobject
- upiobject
- us_
bank_ objectaccount - wechat_
pay object - zipobject
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" } }}