Skip to main content

Send Stripe payment invoices with Gmail, Google Drive, and WhatsApp

Workflow preview

Workflow preview
100%
Send Stripe payment invoices with Gmail, Google Drive, and WhatsApp preview
Open on n8n.io

1. Workflow Overview

Quick overview 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, a...

Best for

  • Invoice Processing automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.splitout, n8n-nodes-base.stripe, n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches, n8n-nodes-base.gmail, n8n-nodes-base.httprequest, n8n-nodes-base.googledrive

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by SpaGreen Creative.

Original n8n.io source

1.1 Workflow description

Title
Send Stripe payment invoices with Gmail, Google Drive, and WhatsApp
Workflow name
Send Stripe payment invoices with Gmail, Google Drive, and WhatsApp

Quick overview

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.

How it works

  1. Triggers when Stripe reports a successful payment, invoice payment, or checkout session completion.
  2. Checks whether the payment amount matches the amount received and, if it does not, calculates a payment summary for review.
  3. Retrieves the Stripe customer and creates then finalizes a Stripe invoice configured to be sent with Net 30 terms.
  4. Fetches invoices created since the event time, iterates through the results, and keeps only Stripe objects that are invoices.
  5. Pulls Stripe checkout session line items and formats company, customer, totals, and a custom invoice number for messaging and file naming.
  6. Emails the customer the invoice details and PDF link via Gmail, sends an admin WhatsApp alert via Rapiwa, downloads the PDF, and uploads it to Google Drive.

Setup

  1. Add Stripe API credentials, enable the Stripe webhook events used by the trigger, and copy the webhook URL into your Stripe dashboard.
  2. Add Gmail OAuth2 credentials and confirm the workflow’s Gmail “send to” mapping matches the email field returned by your Stripe checkout session.
  3. Add Google Drive OAuth2 credentials and set the target Drive folder in the Google Drive upload step.
  4. Add Rapiwa API credentials and replace the placeholder WhatsApp number with your admin number.
  5. Update the company identity, banking details, and any invoice terms (for example days until due) in the invoice formatting and Stripe invoice creation steps.

Requirements

  • Stripe API: Connects to the Stripe account to listen for webhooks (payment_intent.succeeded, checkout.session.completed, etc.) and perform API operations (retrieve customers, create invoices, finalize invoices).
  • Gmail OAuth2: Used to send the generated invoice PDF and details to the customer.
  • Google Drive OAuth2*: Used to upload and save the generated PDF invoices to a cloud storage folder.
  • Rapiwa API: Used to send WhatsApp notifications to the admin regarding order details and workflow status.

Customization

  • Adjust invoice settings in the Create Stripe Invoice and Finalize Invoice nodes (e.g., due date, collection method,
  • Customize the customer email content in the Email (Send Invoice) node.
  • Update the Invoice Save to Google Drive node's folderId to store PDFs in a specific Google Drive folder.

Additional info

• Uses Stripe events for payment validation and invoice generation • Update company details in the Format Invoice Data node to match your business • Dynamically fetches purchased items from Stripe sessions • Validates payment amounts before processing invoices • Replace the placeholder WhatsApp number in the Rapiwa node with your admin number

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 2 - List Invoices

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 3 - We do only Invoice Objects

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 4 - Get a customer1

Type / Role
n8n-nodes-base.stripe - stripe
Config choices
Version 1

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - Email (Send Invoice)

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 8 - HTTPS (Download PDF)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Invoice Save to Google Drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 10 - Rapiwa (Notification Admin by WhatsApp)

Type / Role
n8n-nodes-rapiwa.rapiwa - rapiwa
Config choices
Version 1

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Stripe (Trigger Payment Succeeded)

Type / Role
n8n-nodes-base.stripeTrigger - stripeTrigger
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - HTTPS (Get all Invoices)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - HTTPS (Download Invoice PDF from Stripe)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - HTTPS (Finalize Invoice)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 20 - HTTPS (Create Stripe Invoice)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 21 - HTTPS (Generate Payment Links)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 22 - Stripe (Get a customer)

Type / Role
n8n-nodes-base.stripe - stripe
Config choices
Version 1

Block 23 - HTTPS (Get Line Items)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 24 - Code (Format Invoice Data)

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Send Stripe payment invoices with Gmail, Google Drive, and WhatsApp
Complexity advanced
Nodes 27
Categories Invoice Processing
Author SpaGreen Creative
Published 18 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16480/16480.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Send Stripe payment invoices with Gmail, Google Drive, and WhatsApp do?

Quick overview 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, a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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 use case.