Payment Method Configurations 

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:

The Payment Method Configuration object 

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

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"
}
}
}

Create a payment method configuration 

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

POST /v1/payment_method_configurations
import stripe
stripe.api_key = "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2"
payment_method_configuration = stripe.PaymentMethodConfiguration.create(
name="Buy Now Pay Laters",
)
Response
{
"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 

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

POST /v1/payment_method_configurations/:id
import stripe
stripe.api_key = "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2"
payment_method_configuration = stripe.PaymentMethodConfiguration.modify(
"pmc_abcdef",
acss_debit={"display_preference": {"preference": "on"}},
)
Response
{
"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 

Retrieve payment method configuration

Parameters

No parameters.

Returns

A payment method configuration object.

GET /v1/payment_method_configurations/:id
import stripe
stripe.api_key = "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2"
payment_method_configuration = stripe.PaymentMethodConfiguration.retrieve(
"pmc_abcdef",
)
Response
{
"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"
}
}
}