Skip to main content

Payment Failure Handling (Dunning)

When a customer's payment fails during billing, Zubs automatically attempts to recover the payment through a configurable retry system called "dunning." This guide explains how payment failures are handled and how to optimize your recovery settings.

Overview​

Dunning is the automated process of retrying failed payments and communicating with customers to resolve billing issues. A well-configured dunning strategy:

  • Maximizes payment recovery rates
  • Reduces involuntary churn
  • Minimizes customer frustration
  • Decreases support burden

Without dunning, a single payment failure results in immediate cancellation and lost revenue.

tip

For faster recovery, consider pairing email dunning with the Zubs Mobile App, which can send push reminders and make it easier for customers to update payment details.


How Payment Failures Happen​

Common Causes​

Card Issues:

  • Expired credit card
  • Insufficient funds
  • Card reported lost/stolen
  • Card declined by issuer
  • Card details changed

Bank/Processor Issues:

  • Bank fraud prevention triggered
  • Temporary processor outage
  • Transaction limit exceeded
  • Geographic restrictions

Customer Actions:

  • Customer cancelled card deliberately
  • Customer updated card but didn't update subscription
  • Customer disputed previous charge

Dunning Process Flow​

Step 1: Initial Failure​

  1. Billing day arrives
  2. Payment attempt made
  3. Payment fails (card declined, expired, etc.)
  4. Order creation blocked (no inventory allocated)
  5. Customer notification sent immediately ("Payment Failed" email)
  6. Retry schedule begins

At this point, the subscription is NOT cancelled - it enters the retry cycle.

Step 2: Retry Cycle​

Example with default settings (3 attempts, 7 days between):

Day 0: Initial Failure

  • First payment attempt fails
  • Customer email sent
  • Next retry scheduled for Day 7

Day 7: First Retry

  • Second payment attempt
  • If successful: Order created, customer charged, cycle ends ✅
  • If fails: Customer email sent, next retry scheduled for Day 14

Day 14: Second Retry

  • Third payment attempt
  • If successful: Order created, customer charged, cycle ends ✅
  • If fails: Customer email sent, next retry scheduled for Day 21

Day 21: Third Retry (Final)

  • Fourth payment attempt (1 initial + 3 retries)
  • If successful: Order created, customer charged, cycle ends ✅
  • If fails: All attempts exhausted, "on failure" action triggered

Step 3: Final Action​

After all retry attempts fail, one of three actions occurs based on your configuration:

Action 1: Skip

  • Current billing cycle is skipped
  • Subscription remains active
  • Next billing cycle proceeds as normal
  • Customer is notified

Action 2: Cancel

  • Subscription is permanently cancelled
  • Customer loses access
  • Must resubscribe to continue
  • Customer is notified

Action 3: Pause

  • Subscription is paused
  • No future billing until customer updates payment
  • Customer can unpause when ready
  • Customer is notified

Configuration Settings​

All payment failure settings are located in: Settings → General Settings → Billing Failure Settings → Payment Method Failure

Number of Retry Attempts​

Range: 0-10 attempts
Default: 3 attempts
Recommended: 3-5 attempts for most businesses

Higher retry attempts increase recovery rates but also increase email volume to customers.

Days Between Retry Attempts​

Range: 1-14 days
Default: 7 days
Recommended: 2-3 days for most businesses

Shorter intervals recover payments faster but may feel pushy. Longer intervals give customers more time but slow down revenue recovery. Consider your billing frequency when choosing.

Action When All Retry Attempts Have Failed​

Choose what happens when all retries are exhausted:

Skip Subscription (Recommended)

  • Most customer-friendly option
  • Skips current billing cycle, subscription remains active
  • Best for retention and flexible programs

Cancel Subscription

  • Permanently ends subscription
  • Best when payment is critical for continued service
  • Highest churn but clearest accountability

Pause Subscription

  • Pauses until customer updates payment
  • Balance between skip and cancel
  • Customer must manually unpause

Shopify's Payment Update Email​

Setting: Send customers Shopify's secure link to update their payment method
Default: On

When this is on, Shopify emails your customer a secure link to update their card or re-authorize PayPal when a payment fails, will be retried, and updating the payment method can fix it. It's not sent on the final attempt, for inventory failures, or when the problem is with your store's payment setup rather than the customer's payment method.

Shopify sends this email with its own template, which you can't edit. It goes out in addition to the Zubs Payment Failed emails, so with more retry attempts your customer gets more of them.


Inventory Failures​

When an item on a renewal is out of stock, Shopify fails the whole billing attempt: no order is created and nothing is charged, not even for the items that are in stock. Your inventory shortage strategy decides what happens next.

Location: Settings → General Settings → Billing Failure Settings → Not Enough Inventory

Inventory Shortage Strategy​

StrategyWhat HappensWhat Your Customer Experiences
Retry the whole order (default)Zubs retries the whole order on your inventory retry schedule, then runs your on-failure actionNothing ships until every item is in stock or the retries run out
Ship available items now, send the rest when back in stockZubs creates the order straight away and holds the out-of-stock items in Shopify until you restockThe in-stock items ship right away, the rest follow in a second shipment

Retry the Whole Order​

Inventory failures have their own retry settings, separate from the payment ones:

SettingRangeDefault
Number of retry attempts0-105
Days between retry attempts1-14 days1 day
Action when all retry attempts have failedSkip, Cancel or PauseSkip

With the defaults, Zubs tries again every day for five days, then skips the order. Stock usually comes back within days or not at all, so short intervals work best. Skip keeps the subscription running, which suits a failure that's on your side rather than the customer's.

Customers are kept in the loop here too. They get an email on each retry — letting them know the order couldn't be fulfilled yet, that no action is needed, and when the next automatic retry happens — and a final email when retries run out, worded to match your on-failure action (skip, cancel, or pause). These are controlled by the Inventory Failure toggle in Settings → Notification Settings. Staff notifications for inventory failures follow the same Notify staff about billing failures setting described below.

Ship Available Items Now​

With this strategy, a renewal with an out-of-stock item is charged again straight away, this time allowing the out-of-stock items to oversell:

  • Your customer is charged in full, for the in-stock and the out-of-stock items, in a single order.
  • Your inventory goes negative for the out-of-stock items, so Shopify shows how many units you owe.
  • The out-of-stock items are held in Shopify. Each one sits in its own fulfillment order, put on hold with Shopify's out-of-stock hold reason, and the order is tagged zubs-backorder. The rest of the order can be fulfilled as usual.
  • The held items are released automatically within about an hour once you book the stock in Shopify. Items owed on several orders are released oldest order first, as far as the stock goes.
  • You pay for the second shipment. The customer paid shipping once, for the whole order.

If the payment for such an order fails, it goes through your payment retries. Those count only the failed payments, so the out-of-stock attempts before them don't use up any payment retries.

Your customer gets an email naming the items that will follow once they're back in stock, and the subscription's page in the customer portal shows the same note. Switch the email off with the Item Backordered checkbox, shown below this strategy while it's selected. No inventory failure emails go out for an order that ships this way.

You get these staff emails:

  • Held items — an email with the order and its held items, unless Notify staff about billing failures is set to Never.
  • Items Zubs couldn't hold — an email straight away, whatever that setting says.
  • Lost permission — if Zubs loses the permission to manage your fulfillment orders, it can't release held items. While items wait, it emails you once a day until you grant the permission again.

Everything that's waiting for stock is listed under Backorders in the Inventory Manager, where you can release a hold early or stop Zubs from tracking an item.

What it needs​

  • Your own locations. Zubs can only hold items at locations you fulfil from yourself. If an item is assigned to a location run by a fulfillment service app, such as a 3PL, the order is still created in full, but the item isn't held: Zubs emails you straight away with the order and the item, and flags it under Backorders. The same goes for an item Shopify splits across several fulfillment orders.
  • An extra Shopify permission. When you choose this strategy, Zubs asks you to grant permission to manage your fulfillment orders. Until you grant it, renewals use Retry the whole order.

When Zubs retries the whole order instead​

The retry settings above stay in effect: Zubs falls back to Retry the whole order when

  • every item on the renewal is out of stock,
  • the subscription is prepaid,
  • an out-of-stock product isn't active in Shopify,
  • the order has more than 50 products,
  • the renewal was already split once, or
  • the permission isn't granted.

Once the renewal is split, the second charge is a regular renewal charge: if the payment fails, your payment retry settings apply. If Zubs can't make the second charge at all, the renewal is retried on your inventory retry schedule, and each retry still ships the available items.

After uninstalling Zubs​

Holds stay in place when you uninstall Zubs, and Zubs doesn't release them. Release them yourself on each order tagged zubs-backorder in Shopify.

Creating the Order Yourself​

To retry many subscriptions at once once the stock is back, use Retry now in the subscription list instead. See Bulk actions.

When a renewal failed because of stock, the subscription's page in the merchant portal shows a banner saying the order couldn't be created, and how many products were short. Create order now opens the choice of how to charge that order, with Whole order, overselling the missing items selected: it lists the out-of-stock products and, once you click Charge and oversell, charges the renewal with those products oversold. Use it when the stock is physically there but not yet booked in Shopify, or when you'd rather ship late than skip.

The order is created in full and charged like any renewal, and your inventory goes negative for the oversold products. Nothing is held: the whole order is ready to fulfil, whichever strategy you chose. See Viewing a Specific Subscription Contract.

To ship the in-stock products now and leave the rest out of this order instead, pick Without the missing items in the same choice, or use Charge again on the failed row under Past orders. Nothing is oversold, and the missing products stay on the subscription for later orders.

When products are in stock but can't be shipped​

Shopify only fulfils an order from a location that ships to the customer's address. If no shipping zone, location or active market covers the delivery country, the billing attempt fails as an inventory failure ("No inventory location found or enabled") even though the products are in stock.

For these failures, the staff email also names Shopify's reason and the delivery country, so you know which shipping zone, location or market to check. Retries, the on-failure action and the customer emails work the same as for any other inventory failure, and Zubs always retries the whole order, whichever strategy you chose.


Customer Communication​

Notification Emails​

For payment failures, customers receive an email at each stage:

  • An initial failure notification with a link to update payment
  • A reminder after each retry
  • A final notification when retries are exhausted, worded to match the action you chose (skip, cancel, or pause)

Enable these with the Payment Failed toggle in Settings → Notification Settings. Inventory failures have their own Inventory Failure toggle covering the same stages.

On payment failures that will be retried and that a new payment method can fix, customers also get Shopify's payment update email with a secure link to update their payment method, unless you turned it off.

These emails only help if they arrive. When a customer's address bounces or they report an email as spam, further emails to that address are blocked, and the subscription page shows an Emails no longer reach this customer warning. See Viewing a Specific Subscription Contract.

Staff Notifications​

You can also be notified when a billing attempt fails, so you can reach out to the customer before the subscription reaches its final action. One setting covers both payment and inventory failures.

Location: Settings → General Settings → Billing Failure Settings → Staff notifications, field Notify staff about billing failures.

Choose one of three options:

  • Every failed attempt — you're emailed on every failed attempt, from the first through the final one. Best when you want to intervene early.
  • Only when all retries are exhausted (default) — you're emailed once, when the final action (skip, cancel, or pause) runs. Lowest volume.
  • Never — no staff emails for billing failures. Customers are still notified either way.

The per-attempt email tells you which subscription failed, confirms it's still active with more retries to come, and links back to this setting so you can adjust the volume.

Staff emails are written in your store's default language when it's English, French, German, Italian or Spanish, and in English otherwise. See Languages and Regions.


Monitoring and Optimization​

Track your payment failure and recovery rates regularly. Adjust your retry settings based on what you observe in your actual data.

To dig into a single failure, open the subscription and use View details on the failed row in Past Orders — it shows the error code the processor returned, the amount that was attempted, and what the order would have contained.


Best Practices​

Recommended Starting Configuration:

  • 3-5 retry attempts
  • 2-3 days between retries
  • Skip on failure
  • Enable payment failure notifications
  • Staff notifications set to Only when all retries are exhausted (switch to Every failed attempt if you want to catch failures early)

Common Scenarios​

Expired Card: Payment fails, retries occur over several days, customer updates card, next retry succeeds.

Insufficient Funds: Payment fails, customer gets paid, next retry succeeds quickly.

Complete Failure: All retries fail, subscription is skipped/paused/cancelled based on your settings, customer receives notification.

Proactive Customer: Customer sees failure notification immediately, updates payment within hours, next retry succeeds.


Troubleshooting​

High Failure Rates:

  • Check if fraud prevention is too aggressive
  • Consider proactive card expiration reminders

Low Recovery Rates:

  • Reduce days between retries
  • Increase number of retry attempts
  • Make payment updates easier for customers

Too Many Email Complaints:

  • Increase days between retries
  • Reduce total number of retry attempts