Email Automation
Send PDF payment receipts with Stripe, EmitForge, Gmail, Google Drive and Slack
When something happens in a connected app, it handles email using Gmail, Google Drive, Slack, Stripe.
What it does
## Send a PDF receipt automatically after each Stripe payment ### Who's it for Anyone selling through Stripe who wants customers to get a branded, itemised receipt as a PDF attachment — not just Stripe's default email. Works for one-off charges and for subscription renewals, since both produce a charge.succeeded event. ### How it works The Stripe Trigger fires on every successful charge. A Code node turns the charge into receipt fields: money formatted in the charge's own currency (zero-decimal currencies handled), the card brand and last four digits, the customer's name and email. The HTML template is posted to an HTTP endpoint that returns a signed link, and a second request downloads it as a file so Gmail and Drive receive the same binary. Charges without a customer email are stopped by the If node instead of failing in Gmail. ### How to set up 1. Connect your Stripe account to the Stripe Trigger node. n8n registers the webhook for you. 2. Put your company name, address, support email and locale in Set company details. 3. Add a Header Auth credential named Authorization with the value Bearer YOUR_KEY. Get the key at emitforge.com/start — the free tier covers 100 receipts a month and needs no card. 4. Connect Gmail, and optionally Google Drive and Slack (delete those two nodes if you don't need them). 5. Make a test payment in Stripe test mode and check the receipt lands in your inbox. ### Requirements Stripe and Gmail credentials (Google Drive and Slack optional), plus an API key for the rendering endpoint — free tier at emitforge.com/start, 100 renders a month, no card. ### How to customize To itemise a receipt, put metadata.items on the charge as desc|qty|unit;desc|qty|unit — the Code node turns it into table rows. To use payment_intent.succeeded instead, change the event in the trigger and read data.object the same way. To use your own typeface, embed it as a data URI; the renderer has one font installed and any other family falls back silently.
The steps
- When a Stripe charge succeeds
- Set company details
- Build the receipt fields
- Has a customer email?
- Render the receipt PDF
- Download the rendered file
- Email the receipt to the customer
- Archive the receipt in Drive
- Post a one-line summary to Slack
Similar automations
Finance, Invoices & AccountingCreate QuickBooks Sales Receipts from Stripe Payments8 stepsEmail AutomationGenerate monthly invoice PDFs from Google Sheets with Gmail, Drive, Slack, and Emitforge9 stepsFinance, Invoices & AccountingSync Stripe Payment Orders and Customer Details13 stepsFinance, Invoices & AccountingRetrieve Customer Details from Stripe Payment Events3 steps