Instant alert when a Stripe payment fails
Know about failed payments right away and log them for follow-up.
How it works
Trigger: Stripe — payment failed event
- Receive the failed payment event from Stripe.
- Post the customer email, amount and failure reason to Slack.
- Append the same details to a "Failed payments" sheet.
Diagram
Trigger App Logic
Build it
Pick your tool — same automation, step by step.
Copy and paste straight into an n8n canvas (Ctrl+V), or download and use Import from File. Then connect your own credentials and replace every YOUR_… placeholder.
Show code (162 lines)
{
"name": "Instant alert when a Stripe payment fails (Flowngn)",
"nodes": [
{
"parameters": {
"content": "## Instant alert when a Stripe payment fails\nKnow about failed payments right away and log them for follow-up.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
"height": 260,
"width": 340
},
"id": "458223d5-1673-42cd-a93b-ba83e3101dc7",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"events": [
"payment_intent.payment_failed"
]
},
"id": "458223d5-1673-42cd-a93b-ba83e3101dc7",
"name": "Payment failed",
"type": "n8n-nodes-base.stripeTrigger",
"typeVersion": 1,
"position": [
0,
0
],
"webhookId": "458223d5-1673-42cd-a93b-ba83e3101dc7"
},
{
"parameters": {
"select": "channel",
"channelId": {
"__rl": true,
"value": "#billing",
"mode": "name"
},
"text": "=💳 Payment failed: {{ ($json.data.object.amount / 100).toFixed(2) }} {{ $json.data.object.currency.toUpperCase() }}\nCustomer: {{ $json.data.object.receipt_email || $json.data.object.customer }}\nReason: {{ $json.data.object.last_payment_error?.message }}",
"otherOptions": {}
},
"id": "458223d5-1673-42cd-a93b-ba83e3101dc7",
"name": "Alert #billing",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.2,
"position": [
300,
0
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "a1",
"name": "date",
"value": "={{ $now.toISO() }}",
"type": "string"
},
{
"id": "a2",
"name": "customer",
"value": "={{ $json.data.object.receipt_email || $json.data.object.customer }}",
"type": "string"
},
{
"id": "a3",
"name": "amount",
"value": "={{ $json.data.object.amount / 100 }}",
"type": "number"
},
{
"id": "a4",
"name": "reason",
"value": "={{ $json.data.object.last_payment_error?.message }}",
"type": "string"
}
]
},
"options": {}
},
"id": "458223d5-1673-42cd-a93b-ba83e3101dc7",
"name": "Pick fields",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
300,
220
]
},
{
"parameters": {
"operation": "append",
"documentId": {
"__rl": true,
"value": "YOUR_SPREADSHEET_ID",
"mode": "id"
},
"sheetName": {
"__rl": true,
"value": "Failed payments",
"mode": "name"
},
"columns": {
"mappingMode": "autoMapInputData",
"value": {}
},
"options": {}
},
"id": "458223d5-1673-42cd-a93b-ba83e3101dc7",
"name": "Log failed payment",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
600,
0
]
}
],
"connections": {
"Payment failed": {
"main": [
[
{
"node": "Alert #billing",
"type": "main",
"index": 0
},
{
"node": "Pick fields",
"type": "main",
"index": 0
}
]
]
},
"Pick fields": {
"main": [
[
{
"node": "Log failed payment",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}In Make, create a new scenario and add these modules in order:
- Stripe › Watch Events (payment failed)
- Slack › Create a Message
- Tools › Set multiple variables
- Google Sheets › Add a Row
- Every module run uses Make operations — the free plan includes a monthly quota.
- Module and step names can differ slightly as Make and Zapier update their apps.
In Zapier, create a new Zap and add these steps in order:
- Stripe — New Event (payment failed)
- Slack — Send Channel Message
- Formatter by Zapier (map the fields you need)
- Google Sheets — Create Spreadsheet Row
- Zaps with more than two steps need a paid Zapier plan.
- Module and step names can differ slightly as Make and Zapier update their apps.
Tips
- Add a Gmail step to send the customer a friendly card-update reminder.
Related flows
Finance & AdminEasy
Paid invoices into your bookkeeping sheet
Every paid Stripe invoice is recorded automatically, ready for your accountant.
Stripe → Google Sheets5h/mo
Finance & AdminMedium
Daily Stripe revenue in Slack
Every morning, see yesterday's revenue and number of payments in Slack.
Stripe → Slack2h/mo
Finance & AdminMedium
Weekly KPI report by email
Every Monday, get a short summary of last week's key numbers from your sheet.
Google Sheets → Gmail3h/mo