تنبيه فوري عند فشل دفعة في Stripe

اعرف بالمدفوعات الفاشلة فورًا وسجّلها للمتابعة.

سهل توفّر ~2 ساعة شهريًا المالية والإدارةبواسطة فريق Flowngn

تعمل مع n8n · Make · Zapier

كيف تعمل

المشغّل: Stripe — حدث فشل الدفع
  1. استقبل حدث فشل الدفع من Stripe.
  2. أرسل بريد العميل والمبلغ وسبب الفشل إلى Slack.
  3. أضف نفس البيانات إلى ورقة "Failed payments".

المخطط

SPayment failedStripe TriggerSAlert #billingSlack✎Pick fieldsEdit Fields (Set)GLog failed paymentGoogle Sheets
مشغّل تطبيق منطق

ابنِها بأداتك

اختر أداتك — نفس الأتمتة، خطوة بخطوة.

انسخه والصقه مباشرة في مساحة عمل n8n (Ctrl+V)، أو حمّله واستخدم Import from File. بعد ذلك اربط حساباتك واستبدل كل قيمة تبدأ بـ YOUR_.

ملف Workflow JSON
عرض الكود (162 سطر)
{
  "name": "تنبيه فوري عند فشل دفعة في Stripe (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## تنبيه فوري عند فشل دفعة في Stripe\nاعرف بالمدفوعات الفاشلة فورًا وسجّلها للمتابعة.\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": []
}

← افتحها في ساحة التجربة لتعديلها

نصائح

  • أضف خطوة Gmail ترسل للعميل تذكيرًا لطيفًا بتحديث بطاقته.

أتمتات مشابهة