Skip to content
Shahid Malla
Billing and automation In Stock

Failed Payment Recovery (Dunning) Module for WHMCS

Recover declined card renewals in WHMCS with retry days you choose, reminder emails that link to the invoice and a grace period per product group.

WHMCS 8.13 and 9.x (confirmed at purchase) PHP 8.1+

What will the failed payment recovery module do?

When a renewal charge on a saved card is declined, the module takes over the follow-up. It retries the capture on the days you set, emails the client a short sequence of reminders that say the card was declined and link straight to the invoice so they can pay with another card, and holds off suspension for the grace period you gave that product group. As soon as the invoice is paid, by a retry or by the client, the sequence stops and the payment counts in the recovered-revenue report.

This product is built to order: you get the license key at purchase and the download within 15 business days.

What does WHMCS already do, and what does this add?

On its own, WHMCS captures stored cards a set number of days before the due date and, after a decline, retries every day, once a week for the number of weeks you choose, or not at all. It sends an unpaid invoice reminder before the due date and up to three overdue notices, lets clients update saved cards on the Payment Methods page of the client area, and suspends overdue services after one Suspend Days value that applies to every product, with an override date per service. The module adds retry days you pick freely (for example 1, 3, 7 and 12 days after the first decline), reminders written for a failed payment rather than a plain overdue notice, an optional SMS step, a grace period per product group and a report of what came back.

What is included?

PartWhat you get
Retry scheduleCapture attempts on the days after a decline that you set, through WHMCS's own capture
Reminder emailsA sequence you edit in the admin area, each email with a link to the unpaid invoice
SMS stepOptional text message through my notification hub
Grace periodsDays before suspension set for each product group
Stop rulesThe sequence ends as soon as the invoice is paid or canceled
ReportFailed, recovered and lost amounts by month and product group

Who is it for?

Hosting companies and software sellers that bill renewals to saved cards. Cards expire, get replaced after a bank flags them, or hit their limit, and most of those clients still want the service: they never saw the overdue notice, or did not connect it to a declined card. A message that says plainly what failed, with one link to fix it, gives them a fair chance to pay before anything is suspended. A shared hosting plan and a dedicated server rarely deserve the same patience, which is why the grace period is set per product group.

What do you need, and what are the limits?

Requirements: WHMCS 8.13 or 9.x (I confirm your exact version at purchase), PHP 8.1 or newer, the WHMCS cron running every five minutes, and a merchant or token payment gateway that charges stored cards, such as Stripe. You switch on Attempt Only Once in the WHMCS payment capture settings, so the module's schedule replaces the daily or weekly retries. The SMS step needs my SMS, Chat and Email Notification Hub.

Limits: retries only apply to invoices paid by a card stored through WHMCS. Payments the client starts on the provider's site, such as PayPal subscriptions or bank transfers, get the reminder emails but no retries. The link opens the invoice after the client signs in; if you want it to work without a password, pair it with my invoice pay links module. Check your payment provider's rules on retrying declined cards before you set a long schedule.

It costs $149 once for a lifetime license with twelve months of updates and support, the license key at purchase and the download within 15 business days.

Key features

  • Retry days after a decline that you set, in place of daily or weekly retries
  • Retries run through WHMCS's own capture on the client's stored card
  • Reminder email sequence written for declined payments, edited in the admin area
  • A link in each reminder to the unpaid invoice, to pay with another card
  • Optional SMS step through the SMS, Chat and Email Notification Hub
  • Grace period before suspension set per product group
  • Sequence stops as soon as the invoice is paid or canceled
  • Log of every retry and message on each invoice
  • Recovered-revenue report by month and product group

Why customers buy this module

  • →Fewer renewals lost to expired or replaced cards
  • →Clients learn their card failed before the service is suspended
  • →Grace periods that suit each product instead of one rule for all
  • →A clear figure for the revenue the follow-up brings back

Frequently asked questions

Does it replace the WHMCS retry and reminder settings?

It works next to them. You switch on Attempt Only Once, so WHMCS makes the first charge as usual, and the module runs the later attempts on your days through the same WHMCS capture function. You can keep the WHMCS overdue notices or turn them off if the module's reminders cover the same days. Your suspension and termination settings stay in WHMCS, with the module adding the extra days per product group.

How does a client pay with a new card from the reminder?

Each reminder links to the unpaid invoice. The client signs in, pays with a new card, and can make that card the default on the Payment Methods page so future renewals use it. With my invoice pay links module installed, the same link opens the invoice without a password.

When will I get it?

You get the license key at purchase and the download within 15 business days of purchase.

Technical specifications

WHMCS
8.13 and 9.x (confirmed at purchase)
PHP
8.1+
Cron
WHMCS cron every 5 minutes
Gateways
Merchant and token gateways that charge stored cards
Availability
Built to order, delivered in 15 business days
License
Lifetime, 1 year of updates and support included
Delivery
Instant download and license key
Refunds
None, all sales are final

Related modules

$299 lifetime · $499 open source

SM Reseller Hub: White-Label Reseller Platform for WHMCS

SM Reseller Hub lets your WHMCS clients resell hosting, servers, licenses, SSL and domains under their own brand. They get a white-label store and client area on their own domain, a REST API for their own website and a reseller dashboard, while you keep control of prices, margins, payments and every customer.

View details
$39 lifetime

Abandoned Cart Recovery Emails for WHMCS

I built this module to win back WHMCS orders that stall at checkout. It detects abandoned carts, sends an email sequence you write, can add a discount code, and reports which emails bring buyers back.

View details
$49 lifetime · $149 open source

Bulk Edit and Mass Update Tool for WHMCS

An admin-only WHMCS module I built for changes too large to click through and too risky for raw SQL. Filter the records, preview the result, apply it as a background job, and reverse it later if needed.

View details