Send branded PDF receipts for Stripe payments with PDFMint, Gmail and Drive
UnknownWhat this workflow does
This workflow has 11 nodes and runs on Stripe events (payment intent.succeeded). Along the way it connects Stripe, Gmail, Google Drive and Pdfmint (community).
How it runs
Trigger: On Stripe events (payment intent.succeeded).
- Fetch Stripe Customer (Stripe): get (customer)
- Check Customer Attached (If): checks a condition and branches into true / false
- Set Receipt Branding (Edit Fields (Set)): sets 8 fields: seller_name, seller_address, seller_vat_id…
- Log Errors for Action (Edit Fields (Set)): sets 4 fields: stage, payment_intent_id, message…
- Generate Receipt Model (Code): runs custom JavaScript code
- Check Customer Email (If): checks a condition and branches into true / false
- Generate PDF Receipt (Pdf Mint): pdf
- Verify PDF Receipt (If): checks a condition and branches into true / false
- Send Receipt via Gmail (Gmail): uses Gmail
- Store Receipt in Drive (Google Drive): upload (file)
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-pdfmint is verified or supports 3.0 (used in Generate PDF Receipt).
Nodes used (8)
- Stripe Trigger
n8n-nodes-base.stripeTrigger - Stripe
n8n-nodes-base.stripe - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Pdf Mint
n8n-nodes-pdfmint.pdfMint - Gmail
n8n-nodes-base.gmail - Google Drive
n8n-nodes-base.googleDrive
From the author
Quick overview This workflow listens for successful Stripe payments, fetches the associated Stripe customer, generates a branded VAT-inclusive receipt PDF with PDFMint, emails it via Gmail, and archives the PDF in Google Drive, while routing missing customer…