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 map

  • affirmnullable map

  • afterpay_clearpaynullable map

  • alipaynullable map

  • almanullable map

  • amazon_paynullable map

  • apple_paynullable map

  • au_becs_debitnullable map

  • bacs_debitnullable map

  • bancontactnullable map

  • billienullable map

  • bliknullable map

  • boletonullable map

  • cardnullable map

  • cartes_bancairesnullable map

  • cashappnullable map

  • customer_balancenullable map

  • epsnullable map

  • fpxnullable map

  • giropaynullable map

  • google_paynullable map

  • grabpaynullable map

  • idealnullable map

  • jcbnullable map

  • kakao_paynullable map

  • klarnanullable map

  • konbininullable map

  • kr_cardnullable map

  • linknullable map

  • livemodeboolean

  • mobilepaynullable map

  • multibanconullable map

  • naver_paynullable map

  • nz_bank_accountnullable map

  • oxxonullable map

  • p24nullable map

  • pay_by_banknullable map

  • payconullable map

  • paynownullable map

  • paypalnullable map

  • pixnullable map

  • promptpaynullable map

  • revolut_paynullable map

  • samsung_paynullable map

  • satispaynullable map

  • sepa_debitnullable map

  • sofortnullable map

  • swishnullable map

  • twintnullable map

  • us_bank_accountnullable map

  • wechat_paynullable map

  • zipnullable map

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_debitmap

  • affirmmap

  • afterpay_clearpaymap

  • alipaymap

  • almamap

  • amazon_paymap

  • apple_paymap

  • apple_pay_latermap

  • au_becs_debitmap

  • bacs_debitmap

  • bancontactmap

  • billiemap

  • blikmap

  • boletomap

  • cardmap

  • cartes_bancairesmap

  • cashappmap

  • customer_balancemap

  • epsmap

  • fpxmap

  • giropaymap

  • google_paymap

  • grabpaymap

  • idealmap

  • jcbmap

  • kakao_paymap

  • klarnamap

  • konbinimap

  • kr_cardmap

  • linkmap

  • mobilepaymap

  • multibancomap

  • naver_paymap

  • nz_bank_accountmap

  • oxxomap

  • p24map

  • pay_by_bankmap

  • paycomap

  • paynowmap

  • paypalmap

  • pixmap

  • promptpaymap

  • revolut_paymap

  • samsung_paymap

  • satispaymap

  • sepa_debitmap

  • sofortmap

  • swishmap

  • twintmap

  • us_bank_accountmap

  • wechat_paymap

  • zipmap

Returns

Returns the payment method configuration object

POST /v1/payment_method_configurations
stripe.Key = "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2"
params := &stripe.PaymentMethodConfigurationParams{
Name: stripe.String("Buy Now Pay Laters"),
}
result, err := paymentmethodconfiguration.New(params)
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_debitmap

  • affirmmap

  • afterpay_clearpaymap

  • alipaymap

  • almamap

  • amazon_paymap

  • apple_paymap

  • apple_pay_latermap

  • au_becs_debitmap

  • bacs_debitmap

  • bancontactmap

  • billiemap

  • blikmap

  • boletomap

  • cardmap

  • cartes_bancairesmap

  • cashappmap

  • customer_balancemap

  • epsmap

  • fpxmap

  • giropaymap

  • google_paymap

  • grabpaymap

  • idealmap

  • jcbmap

  • kakao_paymap

  • klarnamap

  • konbinimap

  • kr_cardmap

  • linkmap

  • mobilepaymap

  • multibancomap

  • naver_paymap

  • nz_bank_accountmap

  • oxxomap

  • p24map

  • pay_by_bankmap

  • paycomap

  • paynowmap

  • paypalmap

  • pixmap

  • promptpaymap

  • revolut_paymap

  • samsung_paymap

  • satispaymap

  • sepa_debitmap

  • sofortmap

  • swishmap

  • twintmap

  • us_bank_accountmap

  • wechat_paymap

  • zipmap

Returns

An object with the updated account payment method configuration

POST /v1/payment_method_configurations/:id
stripe.Key = "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2"
params := &stripe.PaymentMethodConfigurationParams{
ACSSDebit: &stripe.PaymentMethodConfigurationACSSDebitParams{
DisplayPreference: &stripe.PaymentMethodConfigurationACSSDebitDisplayPreferenceParams{
Preference: stripe.String(stripe.PaymentMethodConfigurationACSSDebitDisplayPreferencePreferenceOn),
},
},
}
result, err := paymentmethodconfiguration.Update("pmc_abcdef", params)
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
stripe.Key = "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2"
params := &stripe.PaymentMethodConfigurationParams{}
result, err := paymentmethodconfiguration.Get("pmc_abcdef", params)
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"
}
}
}
Was this page helpful?