{"product_id":"stripe-receipt-automation-in-n8n-branded-pdf-via-pdfmint","title":"Stripe Receipt Automation in n8n: Branded PDF via PDFMint","description":"\u003ch3\u003eAutomatically send branded Stripe receipts as A4 PDFs from n8n—complete with VAT and archiving\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow listens for \u003cstrong\u003eStripe payment_intent.succeeded\u003c\/strong\u003e events, generates a \u003cstrong\u003ebranded, VAT-inclusive receipt PDF\u003c\/strong\u003e using \u003cstrong\u003ePDFMint\u003c\/strong\u003e, emails it to the customer via \u003cstrong\u003eGmail\u003c\/strong\u003e, and archives the same PDF in \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e—with clear error routing for missing customer data, missing email, and delivery\/rendering failures.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on successful payment:\u003c\/strong\u003e Starts when a Stripe \u003cem\u003epayment_intent.succeeded\u003c\/em\u003e event is received.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches the Stripe customer:\u003c\/strong\u003e Retrieves the associated Stripe Customer and stops for review if no customer is attached to the payment.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds a receipt model + HTML:\u003c\/strong\u003e Applies receipt branding details (seller name, address, VAT rate, locale, and footer note) and uses the Stripe payment amount and description.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates email availability:\u003c\/strong\u003e Checks the customer record for an email address; routes missing-email cases to an actionable error path.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRenders an A4 PDF via PDFMint:\u003c\/strong\u003e Sends the receipt HTML to PDFMint, then validates that a PDF binary is returned.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends and archives the PDF:\u003c\/strong\u003e Emails the PDF receipt using Gmail and uploads the same PDF to Google Drive, routing any delivery or upload errors to the error path.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators who need instant, compliant \u003cstrong\u003eStripe receipt automation\u003c\/strong\u003e without manual PDF creation.\u003c\/li\u003e\n  \u003cli\u003eTeams standardizing VAT-inclusive billing documents for customers in a specific \u003cstrong\u003elocale\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eOperations workflows that must keep a reliable \u003cstrong\u003eGoogle Drive archive\u003c\/strong\u003e of every emailed receipt.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStripe:\u003c\/strong\u003e Trigger on \u003cem\u003epayment_intent.succeeded\u003c\/em\u003e and customer lookup tied to the Payment Intent.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePDFMint:\u003c\/strong\u003e PDF rendering from generated receipt HTML (A4 output) and PDF binary validation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail:\u003c\/strong\u003e Sends the rendered PDF receipt to the customer.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Drive:\u003c\/strong\u003e Uploads the same receipt PDF for archiving.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n logic:\u003c\/strong\u003e Uses nodes such as \u003cem\u003eif\u003c\/em\u003e, \u003cem\u003eset\u003c\/em\u003e, \u003cem\u003ecode\u003c\/em\u003e, and \u003cem\u003esticky note\u003c\/em\u003e to handle routing and data preparation.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup note:\u003c\/strong\u003e Provide Stripe credentials for both the trigger and customer lookup, add PDFMint API credentials, and configure Gmail + Google Drive OAuth2. Then update the seller identity, VAT percentage, locale, and footer text.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45916246343859,"sku":"N8N-18793","price":68.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/W85b5ona9wMbVuL2Cw-gn_oJq0HulB.png?v=1788013625","url":"https:\/\/buyflowscripts.com\/products\/stripe-receipt-automation-in-n8n-branded-pdf-via-pdfmint","provider":"N8N Commerce","version":"1.0","type":"link"}