Templates / Guard Stripe and Shopify webhooks with HMAC verification and idempotency

Guard Stripe and Shopify webhooks with HMAC verification and idempotency

Ready for 3.0

by Grine Mohamed · 0 views · created 2026-11-21 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 26 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Slack, Redis, Google Sheets and Stripe and 4 more.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Extract Signature & Event Metadata (Code): runs custom JavaScript code
  2. Claim Retryable DLQ Rows (PostgreSQL) (Postgres): run a query
  3. Detect Payment Provider (Switch): routes items into 2 branches
  4. Has Retryable Events? (If): checks a condition and branches into true / false
  5. Compute Stripe HMAC-SHA (Crypto): hashes or encrypts values
  6. Compute Shopify HMAC-SHA (Crypto): hashes or encrypts values
  7. Respond 401 Unauthorized (Respond to Webhook): sends the response back to the webhook caller
  8. Alert Security Channel (Slack) (Slack): uses Slack
  9. Route Fulfillment by Provider (Switch): routes items into 2 branches
  10. Signature & Replay Valid? (If): checks a condition and branches into true / false

…plus 14 more steps. See the full node list below.

Services it uses

SlackRedisGoogle SheetsStripeShopifyPostgresOpenAIGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (15)

From the author

Quick overview This workflow receives Stripe or Shopify payment webhooks, verifies each request’s HMAC signature (with replay protection for Stripe), and deduplicates retries using an external idempotency key store before acknowledging the webhook with a…

Excerpt from Grine Mohamed's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.