Payment method configurations
Create different sets of payment methods to display to customers based on specific checkout scenarios.
Payment method configurations allows dynamic payment method users to display different sets of payment methods to customers for specific checkout scenarios.
You can create a configuration to:
- Display a unique set of payment methods for certain products
- Enable a set of payment methods for your one-off payment checkout flow and a different set of payment methods for your subscription checkout flow
- Connect Offer connected accounts access to additional payment methods for a different subscription fee
After you create a payment method configuration, you can toggle each payment method on or off for a given scenario directly in Dashboard – no code required. Then at checkout, select which configuration you want to use. Stripe ranks the payment methods that are enabled within that configuration to optimise for conversion.
Before you begin
- You must use either the Stripe Payment Element or Checkout.
- You must use Dynamic payment methods to enable additional payment methods from the Stripe Dashboard, which won’t require any code changes.
- To set up dynamic payment methods for direct users, see the payment method integration guide.
- Connect To set up dynamic payment methods for Connect platforms, see Upgrading to dynamic payment methods.
Create a payment method configuration
By default, you have one payment method configuration called Default Config. You can create additional payment method configurations using both the Stripe Dashboard and the API.
Enable payment methods
In the Dashboard, open the configuration and turn on the payment methods that you want to make available to buyers when using that configuration. A buyer sees only payment methods that are turned on and compatible with the payment location and currency.
Note
Some payment methods don’t show edit controls until you expand them.
Display available payment methods in checkout
Copy the configuration ID
in the Dashboard from the configuration you want to use in your checkout flow.
If you’re using the deferred intent creation integration path, pass the payment_
ID when you create your Payment Element component. The Payment Element automatically pulls the payment methods associated with that configuration and ranks them to best convert buyers.
If you aren’t using a Payment Element, pass the payment_
ID when you create a Checkout session.
Payment methods
By default, Stripe enables cards and other common payment methods. You can turn individual payment methods on or off in the Stripe Dashboard. In Checkout, Stripe evaluates the currency and any restrictions, then dynamically presents the supported payment methods to the customer.
To see how your payment methods appear to customers, enter a transaction ID or set an order amount and currency in the Dashboard.
You can enable Apple Pay and Google Pay in your payment methods settings. By default, Apple Pay is enabled and Google Pay is disabled. However, in some cases Stripe filters them out even when they’re enabled. We filter Google Pay if you enable automatic tax without collecting a shipping address.
Checkout’s Stripe-hosted pages don’t need integration changes to enable Apple Pay or Google Pay. Stripe handles these payments the same way as other card payments.
Create a PaymentIntent with the configuration
Create a PaymentIntent on your server using the payment method configuration.
In the latest version of the API, the automatic_
parameter is optional because it’s enabled by default.