Templates / Recover failed Stripe payments by decline reason with Gmail and CRM

Recover failed Stripe payments by decline reason with Gmail and CRM

Ready for 3.0

by Milos Mrsovic · 0 views · created 2026-10-21 · CRM, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 22 nodes and runs on Stripe events (invoice.payment failed). Along the way it connects Stripe and Gmail. It also calls api.stripe.com over HTTP.

How it runs

Trigger: On Stripe events (invoice.payment failed).

  1. Set Initial Configurations (Edit Fields (Set)): sets 4 fields: teamEmail, companyName, crmWebhookUrl…
  2. Initialize Recovery Case (Code): runs custom JavaScript code
  3. Fetch Latest Stripe Charge (HTTP Request): calls api.stripe.com
  4. Determine Decline Reason (Code): runs custom JavaScript code
  5. Configure Recovery Schedule (Code): runs custom JavaScript code
  6. Route by Decline Type (Switch): routes items into 3 branches
  7. Notify Retry Scheduled (Gmail): uses Gmail
  8. Request Card Update (Gmail): uses Gmail
  9. Email Risk Alert (Gmail): uses Gmail
  10. Email Unclassified Alert (Gmail): uses Gmail

…plus 10 more steps. See the full node list below.

Services it uses

StripeGmail

HTTP calls to: api.stripe.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

Quick overview This workflow listens for failed Stripe invoice payments, classifies the decline reason, and then either emails the customer via Gmail, alerts your billing team, and/or updates your CRM through an inbound webhook, including follow-up retries…

Excerpt from Milos Mrsovic's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.