{"product_id":"n8n-workflow-process-stripe-orders-with-gmail-slack-alerts","title":"n8n Workflow: Process Stripe Orders with Gmail \u0026 Slack Alerts","description":"\u003ch3\u003eAutomatically process incoming Stripe-like orders and notify customers and teams via Gmail + Slack\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives order requests from a Lovable app webhook, validates and deduplicates them in \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, simulates a \u003cstrong\u003eStripe payment intent\u003c\/strong\u003e, then either sends a \u003cstrong\u003eGmail receipt\u003c\/strong\u003e on success or posts a \u003cstrong\u003eSlack alert\u003c\/strong\u003e on failure—while logging every event and error back to Sheets.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives webhook order data:\u003c\/strong\u003e Accepts a POST request containing email, amount, currency, and order ID.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and deduplicates:\u003c\/strong\u003e Checks required fields and formats, creates an idempotency key, then searches \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e to avoid duplicate processing. Writes an initial “processing” record plus an audit log entry.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSimulates payment processing:\u003c\/strong\u003e Uses an HTTP request (via \u003cstrong\u003ehttpbin\u003c\/strong\u003e) to represent a demo Stripe payment-intent call, then decides success vs failure based on the HTTP response and a failure-simulation flag.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetries on failure:\u003c\/strong\u003e If payment fails, it retries up to \u003cstrong\u003ethree times\u003c\/strong\u003e with a \u003cstrong\u003e10-second wait\u003c\/strong\u003e, logging each retry to Google Sheets.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSuccess path:\u003c\/strong\u003e Updates status to \u003cstrong\u003ecompleted\u003c\/strong\u003e, logs success, sends a \u003cstrong\u003eGmail receipt\u003c\/strong\u003e to the customer, and returns a \u003cstrong\u003e200\u003c\/strong\u003e JSON response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFailure path:\u003c\/strong\u003e Updates status to \u003cstrong\u003efailed\u003c\/strong\u003e, logs the failure, posts a \u003cstrong\u003eSlack alert\u003c\/strong\u003e, and returns a \u003cstrong\u003e502\u003c\/strong\u003e JSON response.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators validating an order pipeline before wiring real Stripe payment logic.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers needing webhook-to-ops visibility: receipts for customers and immediate Slack notifications for failures.\u003c\/li\u003e\n  \u003cli\u003eTeams that want durable state tracking (orders, logs, errors) directly in \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e for troubleshooting and auditing.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes:\u003c\/strong\u003e Webhook, if, set, code, Gmail, Slack.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eData storage:\u003c\/strong\u003e Google Sheets (orders, logs, and errors tabs with columns matching the workflow mappings).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePayment simulation:\u003c\/strong\u003e HTTP call to \u003cstrong\u003ehttpbin\u003c\/strong\u003e to mimic a Stripe payment-intent step.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReliability:\u003c\/strong\u003e Idempotency key + duplicate check + retry counter with timed waits.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45756675096755,"sku":"N8N-17751","price":18.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/9M85QprbzOwg8aegX4_7D_EL48fLaO.png?v=1785747831","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-process-stripe-orders-with-gmail-slack-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}