Automate payment retries
Automatically retry failed payments and reduce involuntary churn.
Although payments can fail for a number of reasons, many of them are recoverable. You can automatically retry failed payments with Stripe, without writing code.
Configure the settings in the Retries tab of the Revenue recovery Dashboard.
Stripe doesn’t retry payments for:
- Failures where the issuer provided a non-retryable decline code.
- Unavailable payment methods
- Detached connected accounts (Connect only)
Stripe recommends using Smart Retries, but you can also create a custom retry schedule.
Payment method ordering
Stripe uses the first payment instrument from this ordered list in retries:
- subscription.default_payment_method
- subscription.default_source
- customer.invoice_settings.default_payment_method
- customer.default_source
When you update payment methods after a failed payment attempt, update the field where the previous payment failed. For example, if a subscription has a default_
, but you only update customer.
, Stripe continues to retry on the subscription’s default_
.
Smart Retries
Using machine learning, Smart Retries chooses the best times to retry failed payment attempts to increase the chance of successfully paying an invoice. The machine learning system behind Smart Retries uses time-dependent, dynamic signals, such as:
- The number of different devices that have presented a given payment method in the last N hours.
- The best time to pay (payments made for debit cards in certain countries might be slightly more successful at 12:01 AM in local time zones).
Based on a combination of these factors, Stripe intelligently assesses when to retry payments. We continuously learn from new purchaser behaviors and transactions, which provide for a more targeted approach over traditional rules-based payment retry logic.
Smart Retries reattempts the charge according to your specifications for the number of retries and the maximum duration. You can also use automations to create different retry policies for different customer segments.
You can override this behavior by disabling Smart Retries and defining your own custom retry rules. When you enable dunning, the next_payment_attempt attribute indicates when the next collection attempt will be.
ACH Debit retries
Enable ACH Debit retries to have Stripe automatically retry failed ACH Debit payments caused by insufficient funds. Stripe retries the failed ACH Debit a maximum of two times over a 14 day period.
You can turn on retries for recurring subscription invoices, one-off invoices, or both types of invoice.
Before retrying, make sure you’ve obtained authorization from your customer to retry a debit on their bank account.
Webhook events
For both Smart Retries and custom retry schedules, Stripe reattempts the charge according to your specified schedule. Use the invoice.
webhook to receive subscription payment failure events and retry attempt updates.
The attempt_count attribute on the invoice.
webhook indicates how many attempts have been made so far. If a failure returns a non-retryable return code, we can’t retry invoice payment without a new payment method. Retries continue to be scheduled, and attempt_count continues to increment, but retries only execute after detecting a new payment method. Unexecuted retries don’t create a new Charge.
The next_payment_attempt attribute on the invoice indicates the date when Stripe will attempt the next collection. For automations users, next_payment_attempt is no longer set in invoice.
webhooks but is set in invoice.
webhooks.
Non-retryable decline codes
If the card issuer returns the payment with a subset of decline codes considered as non-retryable, then Stripe can’t automatically retry the payment. These codes are one of the following:
incorrect_
number lost_
card pickup_
card stolen_
card revocation_
of_ authorization revocation_
of_ all_ authorizations authentication_
required highest_
risk_ level
For these failures, the scheduled retries continue but the payment only executes if you obtain a new payment method.