Set payment methods per-subscription
Learn how to specify which payment methods are available for a subscription.
The subscription payment_settings parameter lets you set specific payment methods on individual subscriptions. This allows more flexibility than a single default_
or less granular customer settings.
To enable payment methods, you first need to activate them in your account settings in the Stripe Dashboard.
In some situations, there might be restrictions that prevent certain payment methods from being used for a subscription. For example, a payment method might only operate in one currency, or have limitations on the amount that a customer can pay. Stripe doesnât automatically select a payment method if limitations prevent it from being used. Learn more about payment method support.
Manually select payment methods
You can override the payment methods that a customer can use to pay a subscription by changing its payment settings.
If you configured a default payment method on either the Customer or the Subscription, be sure to include it in the list of payment_
. Otherwise, that method wonât be used and payment might fail.
Payment method priority
By default, customers can pay a subscriptionâs generated invoice with any of the enabled payment methods in your Invoice default payment method configuration. This takes precedence over the older default_source customer setting.
If set, a subscriptionâs payment_
takes priority over default invoice settings, but only for that specific subscription. Payment method types are passed onto the subscriptionâs setup intent and invoices.
You can further specify a subscriptionâs default_
, or the older default_
, to prioritize which payment method is attempted.
Payment method errors
Payment method errors can prevent a subscription from being created. This can happen when:
- You manually select a payment method but a restriction, such as supported currencies, prevents it from being used.
- A payment method isnât activated for your account
Errors can also occur at time of payment, and Stripe canât finalize the invoice. See invoicing payment method errors for details.
Payment method options
Some payment methods have additional options that you can set to customize how a customer pays. See the payment method options documentation for details.