Set payment methods per-subscription
The subscription payment_settings
parameter lets you set specific payment methods on individual subscriptions. This allows more flexibility than a single default_payment_method
or less granular customer settings.
To enable payment methods, you first need to activate them in your account settings.
In some situations, there might be restrictions that prevent payment methods from being used for a subscription. For instance, a payment method might only operate in one currency, or have limitations on the amount that can be paid. Stripe doesn’t automatically select a payment method when these limitations prevent it from being used.
Manually select payment methods
You can override the payment methods that can be used 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_method_types
. Otherwise, that method will not be used and payment could fail.
Payment method priority
By default, customers can pay a subscription’s generated invoice with any of the enabled payment methods in your invoice template settings. This takes precedence over the older default_source
customer setting.
If set, a subscription’s payment_settings.payment_method_types
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_payment_method
, or the older default_source
, 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 the payment experience. See the payment method options documentation for details.