Email & CRM Hygiene · Deterministic Crypto Engine Slug: webhook_hmac_verifier 0-LLM Deterministic

Stripe, Shopify & Creem Webhook HMAC Signature Verifier

Webhook signature mismatches—such as Stripe's timestamped 't=...,v1=...' header vs Shopify's Base64 X-Shopify-Hmac-Sha256 vs Creem's hex signature—are one of the top debugging bottlenecks in billing integrations.

5-Second Try-Now Console Connect via /mcp FastMesh SuperBus

How It Works & Live Probe Telemetry

Running locally with Python's hmac.compare_digest for constant-time comparison, this deterministic tool supports two modes: 'verify' (validates an incoming signature_header against raw payload and BYOK secret) and 'sign_sample' (generates a valid test header snippet for local integration tests). Crucially, BYOK signing secrets are marked sensitive and strictly excluded from both the archive cache and server logs.

Verified Endpoint & Billing Contract

MCP Tool Namewebhook_hmac_verifier
Subdomain & Modeemail_crm_hygiene · deterministic
REST EndpointPOST https://devour-com.fastmesh.dev/v1/organs/webhook_hmac_verifier/invoke
MCP EndpointPOST https://devour-com.fastmesh.dev/mcp (also mounted on https://mcp.fastmesh.dev/mcp)
Verified Probe Latency0.1 ms (HTTP 200, verified 2026-12-02T10:50:00Z)
Archive Cache TTL30 days (2592000s) cross-tenant verified-hit cache
Empty / Error RuleCharge $0.00 on invalid provider, missing payload, or verification exception; BYOK secret is never written to cache or logs.
Plans & PrivacyStarter $19/mo · Pro $79/mo · Scale $249/mo · Zero trajectory resale

Production Use Cases

ScenarioTrigger InputDeterministic Output Value
Creem Checkout Webhook QAVerify creem-signature hex digests in staging pipelinesValidates payload integrity or generates sample headers in 0.1 ms
Shopify App Fulfillment HooksTest Base64 HMAC-SHA256 over raw order JSONEliminates whitespace/serialization mismatches during development
Stripe Billing Event ReplayAudit timestamped v1 signatures before processing upgradesPrevents timing side-channel leaks via constant-time digest checks

MCP JSON-RPC 2.0 & REST Invocation Examples

Call via MCP tools/call on https://devour-com.fastmesh.dev/mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "webhook_hmac_verifier",
    "arguments": {
      "provider": "creem",
      "payload": "{\"event\":\"checkout.completed\",\"id\":\"chk_demo_123\"}",
      "signature_header": "",
      "secret": "whsec_demo_example_only",
      "mode": "sign_sample"
    }
  }
}

Or invoke directly via REST (POST /v1/organs/webhook_hmac_verifier/invoke):

curl -sS -X POST https://devour-com.fastmesh.dev/v1/organs/webhook_hmac_verifier/invoke \
  -H 'Content-Type: application/json' \
  -d '{"input": {"provider": "creem", "payload": "{\"event\":\"checkout.completed\",\"id\":\"chk_demo_123\"}", "signature_header": "", "secret": "whsec_demo_example_only", "mode": "sign_sample"}}'

Verified structured JSON response:

{
  "ok": true,
  "provider": "creem",
  "verified": true,
  "algorithm": "hmac-sha256",
  "sample_header_snippet": "creem-signature: 8f4a...",
  "billable_usd": "0.005"
}

Strict Input Schema

{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "creem",
        "stripe",
        "shopify"
      ]
    },
    "payload": {
      "type": "string"
    },
    "signature_header": {
      "type": "string"
    },
    "secret": {
      "type": "string",
      "description": "BYOK signing secret (never persisted in cache or logs)."
    },
    "mode": {
      "type": "string",
      "enum": [
        "verify",
        "sign_sample"
      ],
      "default": "verify"
    }
  },
  "required": [
    "provider",
    "payload",
    "secret"
  ],
  "additionalProperties": false
}

Frequently Asked Questions

Is my BYOK webhook secret cached or written to disk?

No. Requests containing secret values bypass archive cache persistence and redact sensitive fields from telemetry.

Which webhook providers are supported?

Creem, Stripe, and Shopify signature conventions are built in natively.

Related Commerce & Marketing MCP Tools