# Dynamic payment methods

Simplify your payment methods code by dynamically ordering and displaying payment methods.

Dynamic payment methods is part of the [default Stripe integration](https://stripe.com/blog/dynamic-payment-methods) and enables you to configure payment methods settings from the [Dashboard](https://dashboard.stripe.com/settings/payment_methods)—no code required. When you use dynamic payment methods in an [Element](https://docs.stripe.com/payments/payment-element.md), [Checkout](https://docs.stripe.com/payments/checkout.md), Payment Links, or hosted invoice page integration, Stripe handles the logic for dynamically displaying the most relevant eligible payment methods to each customer to maximize conversion. Dynamic payment methods also unlocks [customization features](https://docs.stripe.com/payments/payment-methods/dynamic-payment-methods.md#customization-features) to help you customize and experiment with payment methods.

Use dynamic payment methods to:

- Turn on and manage most payment methods in the Dashboard
- Eliminate the need to specify eligibility requirements for individual payment methods
- Apply Stripe’s [AI models](https://docs.stripe.com/payments/payment-methods/dynamic-payment-methods.md#ai-models) based on more than 100 signals to dynamically determine which payment methods are eligible and how to display them in order for every checkout session
- Set rules when payment methods are shown to customers
- Exclude payment methods for specific transactions
- Run A/B Tests for new payment methods before rolling them out to customers

## Integration options 

Use [Checkout](https://docs.stripe.com/payments/accept-a-payment.md?payment-ui=checkout&ui=stripe-hosted) or [Payment Element](https://docs.stripe.com/payments/accept-a-payment.md?payment-ui=elements&api-integration=checkout) with dynamic payment methods to have Stripe handle the logic for displaying eligible payment methods in your front end for each transaction. If you have a platform account, follow our [Connect integration](https://docs.stripe.com/connect/manage-payment-methods.md).

## Migrate static payment method configuration to dynamic payment methods

Use this procedure for direct `PaymentIntent`, `SetupIntent`, Checkout Session, Subscription, Invoice, and Payment Link call sites that match the configurations described here. Matching runtime traffic confirms at least one request, but it doesn’t identify every payment flow.

### Find and classify payment call sites

1. Search the codebase for direct calls that create, update, or confirm a `PaymentIntent`; create or update a `SetupIntent`; or create a Checkout Session. Also find Subscription and Invoice create or update calls that send `payment_settings.payment_method_types` and Payment Link create or update calls that send `payment_method_types`.
2. Include shared wrappers, helper functions, generated configuration, and environment-specific branches.
3. Search for `payment_method_types`, `paymentMethodTypes`, `automatic_payment_methods`, `automaticPaymentMethods`, `payment_method_configuration`, and other SDK-specific equivalents.
4. Determine the effective Stripe API version for each call site from a request override (for example, a `Stripe-Version` header) or Stripe client configuration.
5. Classify each call site using the decision table below.
6. Use runtime request evidence, when available, to prioritize or validate a call site. Don’t require request evidence to begin.
7. Check the stop conditions for each call site. Migrate every call site that has no stop condition, even if other call sites in the same codebase do.

A populated `payment_method_types` response property doesn’t prove that the request used static configuration. Inspect source code or the outgoing request.

| Code or request configuration | Classification | Action |
| --- | --- | --- |
| A `PaymentIntent` create, update, or confirm call sets `payment_method_types`. | Static configuration. | Migrate the call as described in this guide. Verify that the `PaymentIntent` create path uses dynamic payment methods before removing the parameter from update or confirm calls. |
| A `SetupIntent` create or update call sets `payment_method_types`. | Static configuration. | Migrate the call as described in this guide. Verify that the `SetupIntent` create path uses dynamic payment methods before removing the parameter from update calls. |
| A Checkout Session create call sets `payment_method_types`. | Static configuration. | Remove `payment_method_types`. Don’t add `automatic_payment_methods`. |
| A `PaymentIntent` or `SetupIntent` create call with an effective API version before `2023-08-16` omits `payment_method_types` and `automatic_payment_methods.enabled`. | Card-only legacy default, not dynamic payment methods. | Set `automatic_payment_methods.enabled=true`. |
| A `PaymentIntent` or `SetupIntent` create call sets `automatic_payment_methods.enabled=false`. | Dynamic payment methods are explicitly disabled. | Investigate why. Stop if the effective API version is `2023-08-16` or later. On earlier versions, change it to `true` only if the disablement is unintentional and no stop condition applies. |
| A `PaymentIntent` or `SetupIntent` create call with an effective API version on or after `2023-08-16` omits both parameters. | Stripe enables dynamic payment methods by default. | Don’t change it. |
| A Checkout Session create call omits `payment_method_types`. | Checkout dynamically determines eligible payment methods. | Don’t change it. |
| A Subscription or Invoice create call sets `payment_settings.payment_method_types`. | Static configuration. | Omit `payment_method_types`. Omit `payment_settings` if it has no other parameters. Don’t add `automatic_payment_methods`. |
| A Subscription or Invoice update call sets `payment_settings.payment_method_types`. | Static configuration. | To clear a stored list, send an empty string for `payment_settings.payment_method_types` using your SDK’s supported syntax. Omitting the parameter leaves the stored list in place. Preserve other payment settings. Don’t add `automatic_payment_methods`. |
| A Payment Link create or update call sets `payment_method_types`. | Static configuration. | Omit `payment_method_types` on create. To clear an existing list on update, send an empty string for `payment_method_types` using your SDK’s supported syntax. Don’t add `automatic_payment_methods`. |

### Stop conditions

Evaluate stop conditions for each call site. Before changing a create call, check the confirmation and fulfillment code that depends on it. If a stop condition makes those calls incompatible with the change, leave the affected flow unchanged. Continue migrating independent call sites.

Skip a call site when any of these conditions applies:

- There’s no call in your code to change. For example, Stripe generates Checkout Sessions or PaymentIntents for payments through Payment Links, invoices, or subscriptions. This also applies to Payment Links created in the Dashboard and calls made by a third-party plugin you can’t change. A `paymentLinks.create` or `paymentLinks.update` call in your code is a direct call.
- The call itself uses a legacy API — Sources, Charges, Tokens, the legacy Cards API (`customer.sources`), or legacy Checkout — or a custom or non-Stripe payment flow. Card payment methods, card-only lists, and code that lists a customer’s saved cards don’t count as the Cards API.
- The call is part of a Terminal in-person payment or setup flow, including a `PaymentIntent` or `SetupIntent` configured for `card_present` or `interac_present`. Follow Terminal-specific guidance instead of applying this procedure.
- The effective API version can’t be established.
- A `PaymentIntent` uses `confirmation_method=manual` or `error_on_requires_action`.
- The code acts on the immediate payment result and doesn’t handle webhooks for delayed outcomes. For example, it fulfills an order from a client-side confirmation, a create or confirm response, or `checkout.session.completed` without checking `payment_status`. Report that the integration must handle delayed outcomes before migrating this call site. Relevant events include `payment_intent.succeeded`, `payment_intent.payment_failed`, and `checkout.session.async_payment_succeeded`. Verify webhook signatures before processing events.
- The server confirms the Intent (`confirm=true` on create, or a confirm call) without a `return_url`, the confirmation isn’t `off_session=true`, and redirect-capable payment methods could become eligible. Report that a `return_url` is needed before this call site is migrated.
- For Connect, the request account, charge type, `on_behalf_of` value, or governing payment method configuration is ambiguous.
- The code shows that the static list or disabled setting is intentional. Look for an explanatory comment, a configuration flag or environment variable, a test that asserts the exact list, or logic that builds the list per request. If none of these signals exists, treat a hardcoded list as legacy configuration and migrate it.
- The matching operation isn’t covered by the decision table above. The table covers `PaymentIntent` create, update, and confirm; `SetupIntent` create and update; Checkout Session create; Subscription and Invoice create and update; and Payment Link create and update.

These aren’t stop conditions. Migrate the call site and list them as follow-ups in your report:

- Webhook handling for delayed outcomes is missing or incomplete, but the code doesn’t act on the immediate payment result.
- Confirmation happens outside the code you can see, so you can’t verify the `return_url` or redirect handling. For example, your code returns a client secret to a front end you can’t inspect.
- Code that reads saved payment methods filters to one type (for example, `PaymentMethod.list(type: 'card')`) and doesn’t show newly eligible types.
- Changing the create code doesn’t update payment method lists on existing Payment Links or subscriptions.

When stopping, report the affected endpoint, effective API version, relevant payment method parameters, payment UI, account context, and behavior that must be preserved. Don’t include API keys, client secrets, personal data, or complete production request bodies.

### Apply the migration

Don’t upgrade the Stripe API version as part of this procedure. For `PaymentIntent` or `SetupIntent` create requests before `2023-08-16`, enable `automatic_payment_methods` explicitly. Treat an API-version upgrade as a separate change.

Preserve the request’s account context, `on_behalf_of`, `payment_method_configuration`, and unrelated parameters. Don’t move a payment to a different Payment Method Configuration as part of this migration.

#### PaymentIntents and SetupIntents

For create calls:

- With an effective API version before `2023-08-16`, remove `payment_method_types` or replace `automatic_payment_methods.enabled=false`, then set `automatic_payment_methods.enabled=true`.
- With an effective API version on or after `2023-08-16`, remove `payment_method_types`. Omit `automatic_payment_methods` unless the integration intentionally configures `allow_redirects`.

For `PaymentIntent` update or confirm calls and `SetupIntent` update calls, remove `payment_method_types` only after verifying that the object was created with dynamic payment methods.

With an effective API version of `2026-09-30.endive` or later, `payment_method_types` isn’t writable on `PaymentIntent` create, update, or confirm calls or on `SetupIntent` create or update calls. Stripe rejects the request parameter with `payment_method_types_no_longer_supported`. The `payment_method_types` response property remains a computed list and can still be populated.

If the flow needs a per-request restriction, verify that the endpoint supports the parameter on the effective API version. If no supported control preserves a required restriction, leave the call site unchanged and report the limitation.

- Use `excluded_payment_method_types` to remove methods from the dynamically eligible set.
- On an API version that supports it, use `allowed_payment_method_types` as a dynamically filtered upper bound. Don’t use it as a static replacement for `payment_method_types`.
- Don’t put `apple_pay`, `google_pay`, or `link` in `excluded_payment_method_types`. Use supported wallet-specific controls.

#### Checkout Sessions

Remove `payment_method_types` from Checkout Session creation. Don’t add `automatic_payment_methods`; Checkout dynamically determines eligible methods when `payment_method_types` is omitted.

With an effective API version of `2026-09-30.endive` or later, Checkout Session creation rejects the writable `payment_method_types` request parameter. The response can still contain the computed `payment_method_types` property.

On API versions that support the parameter for Checkout Sessions, use `excluded_payment_method_types` for exclusions or `allowed_payment_method_types` as a dynamically filtered upper bound. If neither supported control can preserve a required restriction, leave the call site unchanged and report the limitation. Verify that at least one entry in `allowed_payment_method_types` remains eligible for the request. Don’t assume that a request with no eligible candidates succeeds.

The same wallet limitation applies: `excluded_payment_method_types` can’t exclude Apple Pay, Google Pay, or Link. Use supported wallet-specific controls.

#### Confirmation and redirect handling

Don’t add a `return_url` unconditionally. Determine how the integration confirms the Intent and whether redirect-capable payment methods remain eligible:

- Preserve or add a `return_url` when the confirmation path can select a redirect-capable method and the API or SDK requires one.
- For `PaymentIntents` confirmed with `off_session=true`, the `2023-08-16` confirmation behavior doesn’t require a `return_url`.
- If the integration intentionally sets `automatic_payment_methods.allow_redirects=never`, redirect-based methods are filtered and the return URL requirement can be bypassed.
- Skip a flow that uses `confirmation_method=manual` (see stop conditions).
- If confirmation happens outside the code you can see, migrate the call site. List the return handling as a follow-up.

### Before-and-after examples

Adapt these request bodies to the installed Stripe SDK. Preserve unrelated parameters.

#### PaymentIntent

Before:

```json
{
  "amount": 1099,
  "currency": "eur",
  "payment_method_types": [
    "card",
    "ideal"
  ]
}
```

After, when the effective API version is `2023-08-16` or later:

```json
{
  "amount": 1099,
  "currency": "eur"
}
```

After, when the effective API version is before `2023-08-16`:

```json
{
  "amount": 1099,
  "currency": "eur",
  "automatic_payment_methods": {
    "enabled": true
  }
}
```

#### SetupIntent

Before:

```json
{
  "customer": "{{CUSTOMER_ID}}",
  "payment_method_types": [
    "card",
    "sepa_debit"
  ]
}
```

After, when the effective API version is `2023-08-16` or later:

```json
{
  "customer": "{{CUSTOMER_ID}}"
}
```

After, when the effective API version is before `2023-08-16`:

```json
{
  "customer": "{{CUSTOMER_ID}}",
  "automatic_payment_methods": {
    "enabled": true
  }
}
```

#### Checkout Session

Before:

```json
{
  "mode": "payment",
  "line_items": [
    {
      "price": "{{PRICE_ID}}",
      "quantity": 1
    }
  ],
  "payment_method_types": [
    "card",
    "ideal"
  ],
  "success_url": "https://example.com/success",
  "cancel_url": "https://example.com/cancel"
}
```

After:

```json
{
  "mode": "payment",
  "line_items": [
    {
      "price": "{{PRICE_ID}}",
      "quantity": 1
    }
  ],
  "success_url": "https://example.com/success",
  "cancel_url": "https://example.com/cancel"
}
```

### Verification checklist

- [ ] Inspect each changed outgoing request and confirm its effective API version.
- [ ] Confirm no migrated call site sends writable `payment_method_types`.
- [ ] Confirm intentional allowed, excluded, and wallet-specific restrictions remain effective.
- [ ] Test representative amounts, currencies, customer locations, payment UIs, and Connect account contexts.
- [ ] Test immediate, redirect, and asynchronous outcomes for every payment method the flow can offer.
- [ ] Verify return handling and event-driven fulfillment.
- [ ] Search for additional `PaymentIntent`, `SetupIntent`, Checkout, Billing, Payment Links, and legacy API flows.

### Public references

- [API version 2023-08-16 automatic payment methods change](https://docs.stripe.com/changelog/2023-08-16/automatic-payment-methods.md)
- [Endive changes for PaymentIntents and SetupIntents](https://docs.stripe.com/changelog/endive/2026-09-30/removes-the-payment-method-types-parameter-from-payment-intents-and-setup-intents.md)
- [Endive changes for Checkout Sessions](https://docs.stripe.com/changelog/endive/2026-09-30/remove-payment-method-types-checkout-sessions.md)

## Dashboard-based customization features 

Access the following features with dynamic payment methods to control how and when payment methods render.

| Feature | Description |
| --- | --- |
| [Payment method rules](https://docs.stripe.com/payments/payment-method-rules.md) | Customize how you display payment methods by setting targeting parameters based on amount or the customer’s location. |
| [A/B test payment methods](https://docs.stripe.com/payments/a-b-testing.md) | Turn on payment methods for a percentage of traffic, run an experiment, and see the resulting impact on conversion rate, average order value, and shift in volume from other payment methods. |
| [Payment method configurations](https://docs.stripe.com/payments/payment-method-configurations.md) | Create different sets of payment methods for different checkout scenarios using complex logic, such as only showing specific payment methods for one-time purchases and another set for recurring purchases. |
| [Embed the Payment methods settings component](https://docs.stripe.com/connect/embed-payment-method-settings.md) | Embed a payment method settings page directly into your website to allow your users to manage their payment methods. |

## How dynamic payment methods work 

This section doesn’t cover Apple Pay and Google Pay, because they use [different criteria](https://docs.stripe.com/testing/wallets.md).

Review this section to understand the criteria that Stripe uses to eligible payment methods, decide whether to hide or show them, and in what order. If a specific payment method isn’t appearing in your payment flow, one or more of these criteria might not be met.

### Dashboard settings

View the available payment methods in your [Stripe Dashboard](https://dashboard.stripe.com/test/settings/payment_methods). Only payment methods that you enabled can be shown to your customers.

If a payment method isn’t listed in your Dashboard settings, it’s either not supported by Stripe or not supported in the country where your account is registered. For example, PayNow is only available to Stripe accounts in Singapore.

Learn more about [country support](https://docs.stripe.com/payments/payment-methods/payment-method-support.md#country-currency-support).

> When using Stripe Connect with Direct Charges or `on_behalf_of`, the settings of the connected account determines the available payment methods. You can configure them in your [connect settings](https://dashboard.stripe.com/test/settings/payment_methods/connected_accounts).

### Exclude payment methods 

While dynamic payment methods allows you to manage payment methods through the Dashboard, you can also exclude specific payment methods on a per-transaction basis using the `excluded_payment_method_types` parameter when creating a PaymentIntent. This gives you control over which payment methods are available for each transaction, even if they’re enabled in your Dashboard settings.

Today, `excluded_payment_method_types` is available using PaymentIntents, [SetupIntents](https://docs.stripe.com/payments/setup-intents.md), [Checkout](https://docs.stripe.com/payments/checkout.md), and [Payment Element](https://docs.stripe.com/payments/payment-element.md). To exclude payment methods for a specific PaymentIntent:

```curl
curl https://api.stripe.com/v1/payment_intents \
  -u "<<YOUR_SECRET_KEY>>:" \
  -d amount=1000 \
  -d currency=usd \
  -d "automatic_payment_methods[enabled]=true" \
  -d "excluded_payment_method_types[]=affirm" \
  -d "excluded_payment_method_types[]=acss_debit"
```

> To disallow the Apple Pay, Google Pay, or Link payment methods from being used in a particular PaymentIntent, use the wallets hash parameters that are specified per integration type. For example, see the [PaymentElements wallets parameter](https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-wallets). If you exclude `apple_pay`, `google_pay`, or `link` using `excluded_payment_method_types` rather than the wallets hash, it generates an error.

### Product support

Several Stripe products allow you to charge customers, such as Checkout Sessions and Payment Element. Not all payment methods are available in all products, and some payment methods don’t support recurring payments.

Learn more about [product support](https://docs.stripe.com/payments/payment-methods/payment-method-support.md#product-support).

### Presentment currency

Stripe supports over [135 presentment currencies](https://docs.stripe.com/currencies.md#presentment-currencies), but most payment methods only support a subset of these. For example, ACH Direct Debit is only available for payments in USD currency.

Learn more about [currency support](https://docs.stripe.com/payments/payment-methods/payment-method-support.md#country-currency-support).

### Charge amount

On top of the general [minimum and maximum amount](https://docs.stripe.com/currencies.md#minimum-and-maximum-charge-amounts) Stripe supports, some payment methods have their own minimum and maximum. For example, SEPA Direct Debit is only available for payments below 10,000 EUR.

> The final amount, including tax and discounts, is the amount used to determine available payment methods.

To learn more, go to that payment method’s overview page.

### API support

Some payment methods can’t be set up for future usage. When you set `setup_future_usage`, those payment methods are automatically filtered out.

Similarly, some payment methods, such as iDEAL, don’t support [manual capture](https://docs.stripe.com/payments/place-a-hold-on-a-payment-method.md). When you set `capture_method: manual`, some payment methods are automatically filtered out.

Learn more about [API support](https://docs.stripe.com/payments/payment-methods/payment-method-support.md#additional-api-supportability).

### Customer’s country

A customer’s country impacts which payment methods are available on the payment page, because most payment methods are available in a predefined number of countries. For example, BLIK is only available for customers in Poland.

Learn more about [country support](https://docs.stripe.com/payments/payment-methods/payment-method-support.md#country-currency-support).

### Other considerations

The following features can also impact the availability of some payment methods:

- [Payment method configuration](https://docs.stripe.com/payments/payment-method-configurations.md), to customize the payment method shown.
- [Payment method rules](https://docs.stripe.com/payments/payment-method-rules.md), to show or hide a payment method based on conditions, such as the amount and currencies.
- [A/B testing](https://docs.stripe.com/payments/a-b-testing.md), to temporarily show or hide a payment method to see its impact on conversion rates.

### AI models 

For every checkout session, Stripe AI models dynamically determine how eligible payment methods are displayed, including their order. These models incorporate more than 100 on-session signals—such as real-time payment method uptime and popularity among similar customers—as well as broader network signals, such as preferred payment methods used by similar businesses. The AI models work alongside any payment method logic you add in code or any rules you set up in the Dashboard.

Our AI models use an exploration-exploitation framework, delivering proven strategies while continuously testing new approaches. As a result, payment method ordering quickly adapts to changing customer expectations and systematically improves over time.
