Block 1 - Route by Failure Type
- Type / Role
- n8n-nodes-base.if - if
- Config choices
- Version 2
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....
n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.function, n8n-nodes-base.slack, n8n-nodes-base.gmail, n8n-nodes-base.wait, n8n-nodes-base.supabase, n8n-nodes-base.webhook
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.
Original n8n.io sourceThis n8n workflow automatically handles failed payment events from payment gateways such as Stripe, Shopify, PayPal or WooCommerce. It receives payment failure webhooks, standardizes the incoming data, identifies the reason for failure and classifies each case into:
Based on the classification, the workflow automatically:
It helps businesses recover lost revenue, reduce manual payment support work and detect suspicious transactions early.
order_idcustomer_emailcustomer_nameorder_valuecurrencyfailure_reasonretry_urlThis workflow is ideal for:
softhardfraudpayment_failure table.| Step | Node | Description |
|---|---|---|
| 1 | Webhook Trigger | Starts workflow on failed payment webhook |
| 2 | Normalize Data | Creates standard payment fields |
| 3 | Classify Failure | Detects soft, hard or fraud |
| 4 | Route by Type | Branches logic by failure category |
| 5 | Soft Alert | Sends internal Slack notification |
| 6 | High Value Check | Checks order amount ≥ threshold |
| 7 | Customer Retry Email | Emails payment retry link |
| 8 | Delay | Prevents excessive reminders |
| 9 | Increase Counter | Tracks retry attempts |
| 10 | Limit Check | Stops after max retries |
| 11 | Fraud Alert | Urgent suspicious payment alert |
| 12 | Hard Failure Alert | Standard non-retryable alert |
| 13 | Database Logging | Stores all results in Supabase |
| Issue | Possible Cause | Solution |
|---|---|---|
| Workflow not receiving events | Webhook misconfigured | Verify webhook URL and provider settings |
| Customer email not sent | Gmail credentials expired | Reconnect Gmail OAuth |
| Slack alerts missing | Wrong channel ID or token | Update Slack credentials |
| Soft failures not classified | Missing decline codes | Update Identify Failure Type logic |
| Retry loop not stopping | Retry limit condition incorrect | Verify IF node logic |
| Supabase insert fails | Wrong table/credentials | Check database schema and credentials |
| Order value incorrect | Currency conversion issue | Review amount /100 logic |
| Fraud cases not flagged | New fraud codes missing | Add provider fraud decline codes |
If you need help setting up, customizing or extending this workflow, WeblineIndia can assist with full n8n workflow development, payment automation, revenue recovery systems, fraud monitoring, Slack integrations and custom business process automation.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Handle retail payment failures with retry emails, Slack alerts and Supabase logging |
|---|---|
| Complexity | advanced |
| Nodes | 23 |
| Categories | Invoice Processing, AI Summarization |
| Author | WeblineIndia |
| Published | 25 Apr 2026 |
Use the JSON export at /data/workflows/15273/15273.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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....
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI Summarization use case.