Auto-Send PDF Invoices with Stripe Payment Triggers and Gmail
š° Auto-Send PDF Invoice When Stripe Payment is Received
This workflow automatically generates a PDF invoice every time a successful payment is received in Stripe, then emails the invoice to the customer via Gmail. Perfect for freelancers, SaaS businesses, and service providers who want to automate billing without manual effort.
āļø How It Works
Stripe Payment Webhook
Listens for successful payment events (payment_intent.succeeded).
Triggers the workflow whenever a new payment is made.
Normalize Payment Data
A Code node extracts and formats details like:
Payment ID
Amount & currency
Customer name & email
Payment date
Description
Generates a unique invoice number.
Generate Invoice HTML
A Code node builds a professional invoice template in HTML.
Data is dynamically inserted (amount, customer info, invoice number).
Output prepared for PDF generation.
Send Invoice Email
The Gmail node sends an email to the customer.
Invoice is attached as a PDF file.
Includes a confirmation message with payment details.
š ļø Setup Steps
-
Stripe Webhook In your Stripe Dashboard:
Navigate to Developers ā Webhooks
Add a new endpoint with your Webhook URL from the n8n Webhook node.
Select event:
payment_intent.succeeded -
Gmail Setup In n8n, connect your Gmail OAuth2 credentials.
Emails will be sent directly from your Gmail account. -
Customize Invoice Open the Generate Invoice HTML node.
Replace "Your Company Name" with your actual business name.
Adjust invoice branding, colors, and layout as needed.
š§ Example Email Sent
Subject: Invoice INV-123456789 - Payment Confirmation
Body:
Dear John Doe,
Thank you for your payment! Please find your invoice attached.
Payment Details:
Amount: USD 99.00
Payment ID: pi_3JXXXXXXXX
Date: 2025-08-29
Best regards,
Your Company Name
(Attached: invoice_INV-123456789.pdf)
ā” With this workflow, every Stripe payment automatically creates and delivers a polished PDF invoice ā no manual work required.
Related Templates
Instagram Full Profile Scraper with Apify and Google Sheets
šø Instagram Full Profile Scraper with Apify and Google Sheets This n8n workflow automates the process of scraping ful...
Technology News Workflow Explanation with Key Services
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Auto-Publish Techn...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments