portfolio/5702-automated-stripe-payment-recovery-track-failures-and-follow-up-emails
verified template|450 views
Invoice Processing8 nodes

πŸš€ Automated Stripe payment recovery: track failures & follow-up emails

πŸš€ Automated Stripe Payment Recovery Workflow (n8n)

Integrated Nodes & Architecture (8)
[β€”]Workflow Documentation & Overview

πŸš€ Automated Stripe Payment Recovery Workflow (n8n)

Detect failed payments, log them, and send polite follow-up emails to recover revenue β€” all automated with n8n.


βœ… Partβ€―A – Detect & log failed payments

What it does:

  • β–ͺListens for failed Stripe payments.
  • β–ͺExtracts customer & payment info.
  • β–ͺLogs them neatly in Google Sheets for follow-up.

🧩 Nodes:

1️⃣ Stripe Trigger

  • β–ͺListens to:
  payment_intent.payment_failed

2️⃣ Set node

  • β–ͺExtracts & maps fields:
  • β–ͺName, Email, Amount (in cents), Currency
  • β–ͺpayment\_intent\_id
  • β–ͺadded\_at β†’ {{ $now }}
  • β–ͺemail\_sent\_count β†’ 0

3️⃣ Remove Duplicates

  • β–ͺKeeps the sheet clean (avoids duplicate rows).

4️⃣ Google Sheets node

  • β–ͺAppend or update row:
  • β–ͺName, Email, Amount/100, Currency, payment\_intent\_id, added\_at, email\_sent\_count

> πŸ“Œ This builds your β€œfailed payments queue” to drive the follow-up emails later.


πŸ” Partβ€―B – Daily follow-up emails

What it does:

  • β–ͺRuns daily.
  • β–ͺChecks which users haven’t received 2 emails yet.
  • β–ͺSends reminder emails and tracks how many were sent.

🧩 Nodes:

1️⃣ Schedule Trigger

  • β–ͺRuns every day at 10 AM (0 10 * * *)

2️⃣ Get Payment Failure Leads

  • β–ͺReads rows from Google Sheet.

3️⃣ Switch node (Check for no. of emails sent)

  • β–ͺIf email_sent_count < 1 β†’ send first email.
  • β–ͺElse if email_sent_count < 2 β†’ send second email.
  • β–ͺElse β†’ mark as "quit sending emails".

4️⃣ Send First Email

  • β–ͺSends a gentle reminder with billing page button.

5️⃣ Update Email Count

  • β–ͺIncrements email_sent_count by +1 in Google Sheets.

6️⃣ Send Second Email

  • β–ͺSends final, urgent reminder.

7️⃣ Quit Sending Emails to these Leads

  • β–ͺMarks that no more emails should be sent.

πŸ“ Headline

> πŸš€ Automated Stripe Payment Recovery: Track Failures & Send Follow-Up Emails via n8n


βœ… Why this matters:

  • β–ͺCatch failed payments automatically.
  • β–ͺLog every attempt & follow-up count.
  • β–ͺRecover lost revenue while staying polite and respectful.
  • β–ͺAvoid spamming by capping follow-ups to 2 emails.

production deployment

Need this workflow deployed or tailored for your business?

I customize n8n pipelines, build proprietary API nodes, and connect production databases with sub-100ms reliability.

creator

V

iamvaar

Top 50 Verified Creator

AI Automation Engineer building production-grade n8n systems, custom nodes, and LLM pipelines.

n8n.io/creators/iamvaar

specs

Template ID:#5702
Total Nodes:8
Community Views:450
Difficulty:intermediate
License:Free / Open

Want this workflow running in your stack?

Book a free 30-minute session. I'll inspect your current infrastructure, review required API credentials, and map out the deployment.