Payments glossary Declines & recovery
What Is Retry Logic?
Definition
Retry logic is the set of rules a merchant or billing system uses to decide whether, when and how often to reattempt a failed payment. It combines the decline code, card network limits and a schedule, ranging from fixed intervals to models that pick the best retry time for each payment.
Also called: retry schedule, payment retry logic, retry strategy, reattempt logic
How it works and why it matters
A basic schedule retries at fixed intervals, for example three, five and seven days after the failure. Better logic first filters by decline type: Visa forbids reattempts after Category 1 codes, and Mastercard's Merchant Advice Codes say when to wait (MAC 24-30) or stop (MAC 03 and 21). Network caps then set the outer bounds. Visa allows up to 20 attempts in 30 days for Categories 2-4, and PayPal's May 2026 guidance summarizes Mastercard's thresholds as 10 retries in 24 hours and 35 in 30 days before fees apply.
Retry logic is the core of payment recovery for subscriptions, because most renewal failures are soft declines that can still be collected without the subscriber doing anything. Poor logic loses that money twice: it gives up too early on recoverable payments and wastes attempts, or incurs network fees, on payments that will never succeed.
Example
A SaaS company replaces its fixed day-1, day-3, day-5 schedule with code-aware logic. Code 51 is retried around common paydays, code 91 within hours, code 54 only after an account updater check, and Visa Category 1 codes never. The number of attempts per recovered payment falls, and no card exceeds network limits.
Frequently asked questions
What is Retry Logic?
Retry logic is the set of rules a merchant or billing system uses to decide whether, when and how often to reattempt a failed payment. It combines the decline code, card network limits and a schedule, ranging from fixed intervals to models that pick the best retry time for each payment.
How many times should you retry a failed subscription payment?
Enough to cover the likely recovery window, but within network limits. Stripe recommends a maximum of eight retries for charges that permit them, and its default Smart Retries policy is up to 8 retries within 2 weeks. Hard declines should not be retried at all.
Related terms
Related tools and guides
Sources
- Visa Core Rules and Visa Product and Service Rules (24 October 2026) (Visa)
- How to avoid excessive retries penalties (PayPal)
Sources checked November 2026. Card network and scheme rules change; confirm current rules with your payment provider.
More declines & recovery terms
Losing subscription revenue to failed payments?
Slicker recovers failed recurring payments with smart retries driven by decline codes and Merchant Advice Codes, plus hyper-personalized emails when the customer has to act. It runs on your existing billing platform, and you only pay when it outperforms your current setup in a 50/50 test.