# Failed payment recovery setup guide

A free template from New Theory: https://newtheory.marketing/playbooks/templates/failed-payment-recovery

A customer who means to keep paying can still churn because a card expired, got replaced or hit a limit on renewal day. Nobody decided to leave, yet the revenue is gone unless something retries the charge and asks for a new card before the subscription ends.

This guide has three ways to build it: a HubSpot workflow, a Zapier build and the n8n workflow that ships with it. Pick the one that matches the tools you already pay for. The steps come from our own playbook records, checked against each vendor's docs. They are not official HubSpot, Zapier or n8n templates, and menu names change, so keep the vendor links at the bottom open while you build.

## What it should get you

- Every failed renewal gets retried on a schedule you chose, with a clear end state when retries run out.
- Every customer with a failed payment gets a link to pay or update their card, by email at least and in-app or by text where you have consent.
- Failures above your MRR threshold reach a named person the same day, with the amount and the retry count.
- One place shows failed MRR, recovered MRR and what is still at risk, by month.

## What's in this template

- `failed-payment-recovery-n8n-workflow.json`: an n8n workflow you can import (Workflows > Import from File). Credentials are placeholders and sticky notes say what to fill in.
- `failed-payment-recovery-setup-sheet.csv`: a setup sheet with every field mapping, setting, owner and pre-launch check. Open it in Google Sheets or Excel.
- `failed-payment-recovery-setup-guide.md`: this guide.

## Option 1: HubSpot workflow fed by Chargebee

Use this route if you bill in Chargebee and account owners live in HubSpot, so one failed annual invoice turns into a task and a call.

### Sync billing data and build the workflow

1. In Chargebee, go to Apps > Go to Marketplace > Sales & CRM, connect HubSpot, and turn on Enable auto sync.
2. Check that deals carry the Chargebee subscription fields, including MRR, due invoices count, total dues and due since.
3. In HubSpot, go to Automation > Workflows and build a deal-based workflow that enrolls when due invoices count is above 0 and MRR clears your threshold.
4. Add Create task for the deal owner, then Send a Slack notification with MRR, total dues and due since. Workflows need a Professional or Enterprise tier.

**Watch for:** Chargebee syncs to HubSpot hourly and retries failed records once a day, so use Sync now under Settings > Configure Chargebee > HubSpot while testing.

## Option 2: Zapier

One Zap for each failure and one for each save, starting from Stripe or from a Paddle webhook.

1. For Stripe, start the Zap with the Invoice Payment Failed trigger, which is instant. For Paddle, use Webhooks by Zapier with Catch Hook and paste its URL into the Paddle notification destination.
2. Add a Filter step so only renewals pass: billing_reason is subscription_cycle for Stripe, origin is subscription_recurring for Paddle.
3. Add the action steps for your stack, then build a second Zap for the save that marks the same customer as recovered.
4. Plan on Professional: Webhooks by Zapier and multi-step Zaps are paid features, while Filter, Path and Formatter steps don't count toward tasks.

**Watch for:** Stripe needs separate Zapier connections for test mode and live mode, so a Zap built on test data stays silent on real failures until you switch it.

## Option 3: n8n (the workflow file)

1. In n8n, open Workflows, click Create workflow, then use the menu and choose Import from File. Pick the JSON file from this template.
2. Read the yellow Start here note first. It lists every node you need to fill in, in order.
3. Open each node with a credential and connect your own account. Nothing in the file holds a real key.
4. Replace every value that starts with REPLACE_WITH.
5. Run it once with a test event, then publish so the production webhook URL goes live. Production runs show in the Executions tab, not in the editor.

- Only renewals continue. Each failure is logged in the sheet, sent to Klaviyo as a Payment Failed event, and posted to Slack above your MRR threshold.
- Each paid invoice marks the row recovered and sets payment_status so the Klaviyo flow stops.

## Before you turn it on

Each row is something that breaks in this build and the fix. They are also in the setup sheet as checks.

| What breaks | The fix |
| --- | --- |
| Customers get two different failure emails for one invoice. | Pick one sender per message. If your own tool sends dunning, turn off the billing tool's failed payment email. |
| Retries keep running on a card that can never succeed. | Hard declines like a lost or stolen card need a new card, so the message must ask for one, not promise a retry. |
| A customer who already paid still gets a final notice. | Check payment status right before every send, not only when the sequence starts. |
| The log and the billing tool disagree on recovered MRR. | Webhooks can arrive late or not at all. Reconcile against the billing tool's report each month and treat it as the truth. |

## Want it built for you?

We build these as a one to two week GTM engineering project. Book a fit call at https://newtheory.marketing/book or get a ballpark at https://newtheory.marketing/estimate.

## Sources

- Stripe: Revenue recovery: https://docs.stripe.com/billing/revenue-recovery
- Stripe: Automate payment retries: https://docs.stripe.com/billing/revenue-recovery/smart-retries
- Stripe: Automate customer emails: https://docs.stripe.com/billing/revenue-recovery/customer-emails
- Stripe: Revenue recovery analytics: https://docs.stripe.com/billing/revenue-recovery/recovery-analytics
- Stripe: Automations for Stripe Billing: https://docs.stripe.com/billing/automations
- Stripe: Using webhooks with subscriptions: https://docs.stripe.com/billing/subscriptions/webhooks
- Stripe: The Invoice object: https://docs.stripe.com/api/invoices/object
- Stripe: Set up the no-code customer portal: https://docs.stripe.com/customer-management/activate-no-code-customer-portal
- Stripe: Deep links in the customer portal: https://docs.stripe.com/customer-management/portal-deep-links
- Chargebee: Dunning: https://www.chargebee.com/docs/payments/2.0/dunning/dunning-v2
- Chargebee: Let customers update their payment method during failures: https://www.chargebee.com/docs/payments/2.0/kb/billing/how-to-let-my-customer-update-their-payment-method-during-transaction-failures
- Chargebee: Event types: https://apidocs.chargebee.com/docs/api/events/event-types
- Chargebee: Events and webhooks: https://www.chargebee.com/docs/billing/2.0/site-configuration/events_and_webhooks
- Chargebee: HubSpot integration: https://www.chargebee.com/docs/billing/2.0/integrations/hubspot
- Chargebee: HubSpot configuration: https://www.chargebee.com/docs/2.0/hubspot-integration.html
- Chargebee: HubSpot FAQ: https://www.chargebee.com/docs/billing/2.0/integrations/hubspot-faq
- HubSpot: Manage notifications in Slack: https://knowledge.hubspot.com/integrations/manage-your-notifications-in-slack
- HubSpot: Choose your workflow actions: https://knowledge.hubspot.com/workflows/choose-your-workflow-actions
- Paddle: Payment Recovery: https://developer.paddle.com/concepts/retain/payment-recovery-dunning/
- Paddle: Configure Payment Recovery and dunning options: https://developer.paddle.com/build/retain/configure-payment-recovery-dunning/
- Paddle: Automatic payment failure retries for Paddle Billing: https://developer.paddle.com/changelog/2025/default-dunning-payment-recovery/
- Paddle: transaction.payment_failed: https://developer.paddle.com/webhooks/transactions/transaction-payment-failed/
- Paddle: Create or update notification destinations: https://developer.paddle.com/webhooks/about/notification-destinations/
- Customer.io: Sync customers from Stripe: https://docs.customer.io/journeys/stripe-data-campaign/
- Customer.io: Webhook automations: https://docs.customer.io/journeys/send/campaigns/data-workflows/webhook-triggered-campaigns
- Customer.io: Slack get started: https://docs.customer.io/messaging/channels/slack/get-started/
- Customer.io: True/false branches: https://docs.customer.io/messaging/send/workflows/branches/true-false/
- Intercom: Pricing: https://www.intercom.com/pricing
- Intercom: Create a message API: https://developers.intercom.com/docs/references/rest-api/api.intercom.io/messages/createmessage
- Zapier: Intercom integrations: https://zapier.com/apps/intercom/integrations
- Zapier: Stripe integrations: https://zapier.com/apps/stripe/integrations
- Zapier: How to get started with Stripe on Zapier: https://help.zapier.com/hc/en-us/articles/8496161863693-How-to-get-started-with-Stripe-on-Zapier
- Zapier: Google Sheets integrations: https://zapier.com/apps/google-sheets/integrations
- Zapier: Slack integrations: https://zapier.com/apps/slack/integrations
- Zapier: Pricing: https://zapier.com/pricing
- n8n: Stripe Trigger node: https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.stripetrigger/
- n8n: Stripe Trigger integration: https://n8n.io/integrations/stripe-trigger
- n8n: Klaviyo and Stripe: https://n8n.io/integrations/klaviyo/and/stripe/
- n8n: Twilio node: https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.twilio/
- Klaviyo: Create Event: https://developers.klaviyo.com/en/reference/create_event
- Twilio: Error 30034, unregistered 10DLC number: https://www.twilio.com/docs/api/errors/30034
