diff --git a/.vitepress/config.mts b/.vitepress/config.mts
index f662011..2f984f9 100644
--- a/.vitepress/config.mts
+++ b/.vitepress/config.mts
@@ -85,6 +85,7 @@ export default defineConfig({
{ text: 'π¦ NPM Package (v0.1.4)', link: 'https://www.npmjs.com/package/n8n-nodes-devdeskapp' },
{ text: 'π n8n Template #21017', link: 'https://n8n.io/workflows/21017-format-json-and-secure-hr-payloads-with-devdeskapp-utilities' },
{ text: 'π° n8n Template #21130', link: 'https://n8n.io/workflows/21130-automate-salary-and-in-hand-ctc-calculations-with-devdeskapp' },
+ { text: 'π‘οΈ n8n Template #21376', link: 'https://n8n.io/workflows/21376' },
{ text: 'π Node GitHub Repo', link: 'https://github.com/DevdeskApp/n8n-nodes-devdeskapp' },
{ text: 'π DevDeskApp Web App', link: 'https://www.devdeskapp.com' }
]
@@ -123,7 +124,8 @@ export default defineConfig({
text: 'Official Blueprints',
items: [
{ text: 'π Developer Suite (#21017)', link: '/templates/developer-suite' },
- { text: 'π° CTC Salary Engine (#21130)', link: '/templates/ctc-salary-engine' }
+ { text: 'π° CTC Salary Engine (#21130)', link: '/templates/ctc-salary-engine' },
+ { text: 'π‘οΈ Payment Webhook Sanitizer (#21376)', link: '/templates/payment-webhook-sanitizer' }
]
}
],
diff --git a/src/public/images/screen_webhook_sanitizer_canvas.png b/src/public/images/screen_webhook_sanitizer_canvas.png
new file mode 100644
index 0000000..718c5ad
Binary files /dev/null and b/src/public/images/screen_webhook_sanitizer_canvas.png differ
diff --git a/src/templates/index.md b/src/templates/index.md
index 0084bfc..e28c19e 100644
--- a/src/templates/index.md
+++ b/src/templates/index.md
@@ -95,6 +95,37 @@ Explore our published templates below. Each template has a dedicated documentati
+
+
+
+
+
+ TEMPLATE #21376
+
+ Live on n8n.io
+
+
+ Payment Webhook Sanitizer & Security Audit
+
+
+ Zero-trust gateway for payment webhooks (Stripe, Razorpay, Lemon Squeezy): JSON normalization, SHA-256 cryptographic audit digest, RFC UUID v4 incident trace, and Slack notifications.
+
+
+ Webhook Sanitizer
+ SHA-256 Digest
+ UUID v4 Audit
+ Payment Security
+
+
+
+
diff --git a/src/templates/payment-webhook-sanitizer.md b/src/templates/payment-webhook-sanitizer.md
new file mode 100644
index 0000000..9260554
--- /dev/null
+++ b/src/templates/payment-webhook-sanitizer.md
@@ -0,0 +1,147 @@
+---
+title: "Template #21376: Payment Webhook Sanitizer & Security Audit | DevDeskApp"
+description: Complete blueprint and operational guide for official n8n template #21376. Sanitize payment webhooks, calculate cryptographic SHA-256 digests, generate UUID trace tokens, and audit Stripe/Razorpay transactions in <0.2ms.
+---
+
+# π‘οΈ Template #21376: Payment Webhook Sanitizer & Security Audit Pipeline
+
+
+ Published on n8n.io Creator Portal
+ Template ID: 21376
+
+
+π **Direct n8n Template Link:**
+[n8n.io/workflows/21376](https://n8n.io/workflows/21376)
+
+---
+
+## π― Overview & Use Cases
+
+In modern production payment gateways (**Stripe**, **Razorpay**, **Lemon Squeezy**, **Shopify**, **PayPal**), incoming webhook events carry mission-critical financial data. However, engineering teams face significant architectural challenges:
+
+1. **Unformatted & Minified Payloads:** Gateways often stream compact, escaped, or minified JSON strings that risk malformed parsing errors and crash downstream database ingest pipelines.
+2. **Replay & Tampering Vulnerabilities:** Financial and order transactions require deterministic cryptographic **SHA-256 integrity digests** to guarantee non-repudiation and verify payload authenticity.
+3. **Traceability Gaps Across Systems:** Without unified identifiers, debugging failed payment events across PostgreSQL, Slack alerts, and application logs is slow and fragmented.
+
+**Template #21376** acts as an in-memory security and audit gateway. It intercepts incoming webhook payloads, validates and formats JSON, generates cryptographic checksums and UUID v4 correlation tokens, normalizes order slugs, and routes verified audit records to Slack and downstream databasesβrunning **100% in local memory with zero external cloud API latency**.
+
+---
+
+## πΈ Workflow Architecture
+
+
+

+
+Figure 1: Complete security audit and webhook sanitization canvas in n8n.
+
+### π§© Interactive Architecture & Multi-Stage Execution Flow
+
+```mermaid
+flowchart TD
+ subgraph Ingestion ["π₯ Stage 1: Ingestion Gateway"]
+ T1["β‘ 1-Click Manual Trigger (Testing)"]
+ T2["π Production Webhook Trigger (Stripe / Razorpay)"]
+ Payload["π¦ Inbound Webhook Payload (Headers + Raw Body)"]
+ T1 --> Payload
+ T2 --> Payload
+ end
+
+ subgraph CoreEngine ["π‘οΈ Stage 2: DevDeskApp In-Memory Processing Engine (<0.2ms)"]
+ direction TB
+ N1["1οΈβ£ JSON Prettifier & Schema Validator
+Unescapes raw JSON strings and formats cleanly"]
+ N2["2οΈβ£ SHA-256 Non-Repudiation Hasher
+Computes timing-safe cryptographic payload checksum"]
+ N3["3οΈβ£ RFC UUID v4 Incident Generator
+Injects distributed trace correlation token"]
+ N4["4οΈβ£ Audit Reference Slugifier
+Creates URL-safe audit identifier (order + customer)"]
+ N1 --> N2 --> N3 --> N4
+ end
+
+ subgraph Decision ["βοΈ Stage 3: Security Validation & Condition Check"]
+ Check{"Payment Status == SUCCESS
+& Payload Valid?"}
+ end
+
+ subgraph VerifiedPath ["β
Stage 4A: Authenticated Dispatch Pipeline"]
+ SuccessAudit["π Format Security Audit Record
+Normalized JSON for PostgreSQL / Supabase Log"]
+ SlackSuccess["π¬ DevOps Slack Alert
+#devops-security-alerts (Verified Transaction)"]
+ SuccessAudit --> SlackSuccess
+ end
+
+ subgraph IncidentPath ["π¨ Stage 4B: Security Incident & Tamper Pipeline"]
+ IncidentAudit["β οΈ Format Security Incident Record
+Flags failed payment, tampered payload, or schema error"]
+ SlackIncident["π¨ Tamper Slack Alert
+#security-tamper-alerts (Action Required)"]
+ IncidentAudit --> SlackIncident
+ end
+
+ Payload --> N1
+ N4 --> Check
+ Check -- "Verified (SUCCESS)" --> SuccessAudit
+ Check -- "Rejected / Tampered" --> IncidentAudit
+```
+
+### π Execution Walkthrough (Step-by-Step):
+- **Stage 1 (Dual Ingest):** Supports instant 1-click test runs via manual trigger or live production webhooks from payment gateways with zero configuration changes.
+- **Stage 2 (Local In-Memory Security):** In sub-millisecond local Node.js cycles, DevDeskApp prettifies the payload, computes a SHA-256 cryptographic digest, assigns an RFC 4122 UUID v4 trace ID, and generates a unified audit slug.
+- **Stage 3 (Zero-Trust Condition):** The `If` node evaluates payment capture status and integrity verification.
+- **Stage 4 (Multi-Channel Routing):**
+ - **Success Route:** Emits a compliant audit record and notifies `#devops-security-alerts`.
+ - **Incident Route:** Catches tampered or failed transactions and triggers an immediate escalation to `#security-tamper-alerts`.
+
+---
+
+## βοΈ Core Operations in Pipeline
+
+| Node / Step | Tool / Operation | Purpose |
+| :--- | :--- | :--- |
+| **1. Webhook Ingest** | `manualTrigger` / `webhook` | Ingests live payment event headers and raw JSON body |
+| **2. JSON Prettifier** | `devDeskApp` β `prettify` | Normalizes and validates raw/minified payload into structured JSON |
+| **3. Integrity Hasher** | `devDeskApp` β `hash` (SHA-256) | Computes timing-safe SHA-256 cryptographic digest of payload |
+| **4. Trace Token** | `devDeskApp` β `uuid` (v4) | Injects RFC 4122 UUID v4 incident identifier for distributed audit tracing |
+| **5. Audit Slugifier** | `devDeskApp` β `slugify` | Generates clean URL-safe tracking slug from customer name and order ID |
+| **6. Security Dispatch** | `code` + `slack` | Emits structured compliance payload and triggers real-time security alerts |
+
+---
+
+## β‘ Consolidated Audit Output Sample
+
+When executed, the workflow produces a structured, tamper-proof security record:
+
+```json
+{
+ "auditRecord": {
+ "traceId": "c47a2846-95e2-4bd1-bc91-236b3f7f02ea",
+ "eventChecksum": "a79c4a8b753f19e782e4e135d0e729a4a753697e8838ec6f4bf4b74e64903e1a",
+ "auditSlug": "priya-patel-ord-89421",
+ "gatewayEvent": "payment.captured",
+ "paymentId": "pay_N982kls823a",
+ "orderId": "ORD-89421",
+ "customer": {
+ "name": "Priya Patel",
+ "email": "priya.patel@example.com",
+ "tier": "enterprise"
+ },
+ "amountFormatted": "βΉ4,999.00",
+ "currency": "INR",
+ "paymentMethod": "UPI",
+ "status": "VERIFIED_SUCCESS",
+ "processedAt": "2026-10-23T19:40:00.000Z"
+ }
+}
+```
+
+---
+
+## π₯ How to Import into Your n8n Instance
+
+1. Open the [official template page on n8n.io](https://n8n.io/workflows/21376).
+2. Click **"Use workflow"** or copy the workflow JSON payload.
+3. In your n8n workspace, navigate to **Workflows β New Workflow**.
+4. Press **`Ctrl + V`** (or **`Cmd + V`** on Mac).
+5. Configure the **Production Webhook Trigger** URL in your payment gateway dashboard (Stripe / Razorpay webhooks) and connect your Slack alerts channel!