Templates / Handle retail payment failures with retry emails, Slack alerts and Supabase logging

Handle retail payment failures with retry emails, Slack alerts and Supabase logging

Needs changes

by WeblineIndia ✓ · 27 views · created 2026-04-25 · Invoice Processing, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 17 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Slack, Gmail and Supabase.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Normalize Payment Data (Edit Fields (Set)): sets or maps fields
  2. Identify Failure Type (Function): runs custom JavaScript (legacy Function node)
  3. Route by Failure Type (If): checks a condition and branches into true / false
  4. Notify Team: Payment Failed (Slack): uses Slack
  5. Is This a Fraudulent Payment? (If): checks a condition and branches into true / false
  6. Is This a High-Value Order? (If): checks a condition and branches into true / false
  7. Notify Team: Fraud Detected (Slack): uses Slack
  8. Notify Team: Payment Failure (Slack): uses Slack
  9. Notify Customer to Retry Payment (Gmail): uses Gmail
  10. Log Fraud Case (Edit Fields (Set)): sets or maps fields

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

Services it uses

SlackGmailSupabase

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Identify Failure Type: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
Identify Failure Type
Code node, mode 'Run Once for All Items'

Nodes used (8)

From the author

Retail Payment Failure Alerts with Retry Emails, Slack & Supabase This n8n workflow automatically handles failed payment events from payment gateways such as Stripe, Shopify, PayPal or WooCommerce. It receives payment failure webhooks, standardizes the…

Excerpt from WeblineIndia'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.