Back to library
Ops·n8n workflow

Stripe Dunning & Payment Recovery

Recover failed Stripe payments automatically: branch on the decline reason to email the customer a billing-portal link, or flag hard declines for review.

Inside this workflow

Stripe Failed PaymentStripe Failed PaymentRecoverable?Recoverable?Email CustomerEmail CustomerFlag for ReviewFlag for Review

Overview

**What it automates:** Webhook (Stripe payment failure) → branch on decline code → soft declines (card expired): email with billing-portal link + retry prompt → hard declines (insufficient funds, fraud): Slack flag for manual review. **Business outcome:** SaaS companies recover 15-20% of failed payments with intelligent dunning. Every dollar saved on churn is 10x your acquisition cost. **Apps & nodes:** Stripe webhook, Gmail (dunning emails), Slack (alerts), n8n conditions **Setup (4 steps):** 1. Configure Stripe webhook for payment.failed events 2. Add Gmail account + dunning email template 3. Connect Slack for hard-decline alerts 4. Define which decline codes are "soft" (recoverable) vs "hard" **Difficulty:** Intermediate (15 min setup) | **Credentials:** Stripe, Gmail, Slack

What's included

Importable n8n workflow (JSON)
Real, wired nodes — trigger, logic, and actions
Setup notes: which credentials to connect
Free updates when the workflow changes
Commercial-use license — keep and customize
Email support if you get stuck

Quickstart

  1. 01

    Download the JSON

    With an active Library Pass, download the workflow file right from this page or your dashboard.

  2. 02

    Import into n8n

    Choose Import from File and select the downloaded JSON. The full agent graph appears, ready to configure.

  3. 03

    Plug in credentials

    Each integration node prompts for credentials on first run. The setup guide lists every credential the agent expects.

  4. 04

    Activate and test

    Run once with sample input, confirm the expected output, then flip the activate toggle.

Reviews (0)

No reviews yet. Be the first.

Sign in to leave a review.

Library Pass

Included with any pass

This agent — and every other in the library — comes with a Library Pass. One pass, the whole catalog.

Get a Library Pass
  • Every agent in the library
  • All new releases while active
  • Unlimited downloads
  • Commercial-use license
  • Priority email support
  • 30-day money-back guarantee
Browse the full library →