AutomationFlowsFinance › Send Stripe Payment Invoices with Gmail, Google Drive, and Whatsapp

Send Stripe Payment Invoices with Gmail, Google Drive, and Whatsapp

BySpaGreen Creative @spagreen on n8n.io

This workflow triggers on successful Stripe payment events, generates and finalizes invoices, then formats and sends invoice details via Gmail, stores invoice PDFs in Google Drive, and notifies an admin through WhatsApp using Rapiwa. Triggers when Stripe reports a successful…

Event trigger★★★★☆ complexity27 nodesStripeGmailHTTP RequestGoogle DriveN8N Nodes RapiwaStripe Trigger
Finance Trigger: Event Nodes: 27 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #16480 — we link there as the canonical source.

This workflow follows the Gmail → Google Drive recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "kOMAzSdFEMKVNTc8",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Automated Stripe Payment Collection & Invoice Distribution System",
  "tags": [],
  "nodes": [
    {
      "id": "20022940-3937-42c9-8386-e7c1498a1190",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        16,
        80
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "94320a85-9b7a-4f8d-9f0d-4ab634846689",
      "name": "List Invoices",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        512,
        -384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "98188377-5432-49a9-869f-7f9531639264",
      "name": "We do only Invoice Objects",
      "type": "n8n-nodes-base.if",
      "position": [
        928,
        -368
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "46461cae-db05-4264-9f82-b18e092c33b5",
      "name": "Get a customer1",
      "type": "n8n-nodes-base.stripe",
      "position": [
        48,
        -144
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b1b3462f-baa0-4138-be32-7433b99682c8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        272
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "47f19c36-c495-4ae8-95b5-52d128905d11",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        720,
        -384
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "926fedca-e089-4de3-a146-b12df5fb3a11",
      "name": "Email (Send Invoice)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        512,
        336
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "5028f8c7-9de7-4862-851d-d1d30d973d8b",
      "name": "HTTPS (Download PDF)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        496
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c9aa7139-ee48-4995-83c2-4866e9cbb15f",
      "name": "Invoice Save to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        720,
        496
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "5dae67a3-d6f1-4fec-a7c3-f147651769fc",
      "name": "Rapiwa (Notification Admin by WhatsApp)",
      "type": "n8n-nodes-rapiwa.rapiwa",
      "position": [
        720,
        336
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c5e2d402-ec18-4d6c-8747-42718fe44eac",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        -448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "76ef34d9-bf17-4a08-a47e-b6a434b160c6",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        -448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ba47ebe8-7b40-4047-ae38-e34299350800",
      "name": "Stripe (Trigger Payment Succeeded)",
      "type": "n8n-nodes-base.stripeTrigger",
      "position": [
        -256,
        -384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0e7fa97b-8b2d-433a-8802-c8f09780ea34",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1489a9eb-5290-4617-8d3d-6b0d0cfbce10",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cf18506a-9f48-4dae-bb83-1812f91603bc",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "93e1db30-5f67-4804-9a39-a9208513185e",
      "name": "HTTPS (Get all Invoices)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        304,
        -384
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "94b48ecb-9288-45d2-b595-003fffac5703",
      "name": "HTTPS (Download Invoice PDF from Stripe)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1168,
        -384
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c17ba8bf-3ea7-49a2-8bd6-34461aed02d3",
      "name": "HTTPS (Finalize Invoice)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        432,
        -144
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "a752d0ae-f2da-4a11-8fc1-4bffbba975ed",
      "name": "HTTPS (Create Stripe Invoice)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        -144
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "c0c92bc2-44f7-4f9c-bd23-8dc64fd62d54",
      "name": "HTTPS (Generate Payment Links)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        672,
        96
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "143d11f4-8884-4bc6-9111-86782fd08e25",
      "name": "Stripe (Get a customer)",
      "type": "n8n-nodes-base.stripe",
      "position": [
        464,
        96
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "38240857-9abd-4516-9d6f-f01e22f1b615",
      "name": "HTTPS (Get Line Items)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        48,
        336
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9de1c358-e8d4-404b-8069-2be6ba4bdc6d",
      "name": "Code (Format Invoice Data)",
      "type": "n8n-nodes-base.code",
      "position": [
        272,
        336
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "a8824926-e01e-4a73-b803-0b5006d70bfc",
      "name": "Code (Format Data for Sheets)",
      "type": "n8n-nodes-base.code",
      "position": [
        672,
        -144
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "8c9e04e4-410a-4d74-875f-4f09a6f8932d",
      "name": "Code (Get payment data, amount & currency)",
      "type": "n8n-nodes-base.code",
      "position": [
        48,
        -384
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "8d5e1674-b6f4-47f1-b7e0-86370f9c0eb2",
      "name": "Code (payment summary)",
      "type": "n8n-nodes-base.code",
      "position": [
        272,
        96
      ],
      "parameters": {},
      "typeVersion": 2
    }
  ],
  "active": false,
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "timeSavedMode": "fixed",
    "availableInMCP": false,
    "executionOrder": "v1"
  },
  "versionId": "fd20a9be-e673-48f9-b0df-03a4db8a2bad",
  "connections": {
    "If": {
      "main": [
        [],
        [
          {
            "node": "Code (payment summary)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Invoices": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a customer1": {
      "main": [
        [
          {
            "node": "HTTPS (Create Stripe Invoice)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "We do only Invoice Objects",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email (Send Invoice)": {
      "main": [
        [
          {
            "node": "Rapiwa (Notification Admin by WhatsApp)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTPS (Download PDF)": {
      "main": [
        [
          {
            "node": "Invoice Save to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (payment summary)": {
      "main": [
        [
          {
            "node": "Stripe (Get a customer)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTPS (Get Line Items)": {
      "main": [
        [
          {
            "node": "Code (Format Invoice Data)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stripe (Get a customer)": {
      "main": [
        [
          {
            "node": "HTTPS (Generate Payment Links)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTPS (Finalize Invoice)": {
      "main": [
        [
          {
            "node": "Code (Format Data for Sheets)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTPS (Get all Invoices)": {
      "main": [
        [
          {
            "node": "List Invoices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (Format Invoice Data)": {
      "main": [
        [
          {
            "node": "Email (Send Invoice)",
            "type": "main",
            "index": 0
          },
          {
            "node": "HTTPS (Download PDF)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "We do only Invoice Objects": {
      "main": [
        [
          {
            "node": "HTTPS (Download Invoice PDF from Stripe)",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "HTTPS (Create Stripe Invoice)": {
      "main": [
        [
          {
            "node": "HTTPS (Finalize Invoice)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stripe (Trigger Payment Succeeded)": {
      "main": [
        [
          {
            "node": "Code (Get payment data, amount & currency)",
            "type": "main",
            "index": 0
          },
          {
            "node": "HTTPS (Get Line Items)",
            "type": "main",
            "index": 0
          },
          {
            "node": "If",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get a customer1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTPS (Download Invoice PDF from Stripe)": {
      "main": [
        []
      ]
    },
    "Code (Get payment data, amount & currency)": {
      "main": [
        [
          {
            "node": "HTTPS (Get all Invoices)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow triggers on successful Stripe payment events, generates and finalizes invoices, then formats and sends invoice details via Gmail, stores invoice PDFs in Google Drive, and notifies an admin through WhatsApp using Rapiwa. Triggers when Stripe reports a successful…

Source: https://n8n.io/workflows/16480/ — original creator credit. Request a take-down →

More Finance workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Finance

This workflow automatically generates and delivers professional invoice PDFs whenever a Stripe checkout session completes. It fetches the line items from Stripe, formats them into a clean invoice with

Stripe Trigger, HTTP Request, N8N Nodes Templatefox +2
Finance

Automated Stripe Payment to QuickBooks Sales Receipt

HTTP Request, Stripe, Stripe Trigger +1
Finance

This is the ultimate sales-to-cash automation. When a deal in Airtable is marked "Approved for Invoicing," this workflow intelligently syncs customer data across QuickBooks and Stripe (creating them i

Airtable Trigger, Stripe, QuickBooks +2
Finance

How It Works Trigger: Watches for new emails in Gmail with PDF/image attachments. OCR: Sends the attachment to OCR.space API (https://ocr.space/OCRAPI) to extract invoice text. Parsing: Extracts key f

Gmail Trigger, Google Sheets, Slack +3
Finance

Invoice PDF to Sheets. Uses googleDriveTrigger, googleDrive, httpRequest, googleSheets. Event-driven trigger; 10 nodes.

Google Drive Trigger, Google Drive, HTTP Request +1