Generate realistic WooCommerce webhook payloads, compute live HMAC-SHA256 signatures using Web Crypto API, and preview HTTP dispatch headers — zero external dependencies.
WooCommerce webhook delivery uses HMAC-SHA256 to sign the JSON payload body with a shared secret key. The resulting base64-encoded signature is sent in the HTTP header. Receiving endpoints must recompute the HMAC using the same secret and compare signatures using a constant-time comparison to prevent timing attacks.
∑
HMAC-SHA256 Signature Construction
WooCommerce computes the HMAC over the raw JSON payload bytes using the webhook secret as key. The result is base64-encoded and sent as X-WC-Webhook-Signature. Our tool replicates this algorithm via window.crypto.subtle.sign("HMAC", ...).
∑
Constant-Time Signature Comparison
Timing-safe comparison XORs all bytes and checks the result is zero. Standard string equality short-circuits on first mismatch — leaking signature structure via timing side-channel.
PHP Webhook Receiver Signature Verification
✓ Battle-tested in high-concurrency production deployments across Apache, LiteSpeed, Nginx, and PHP 8.3 environments.
HMAC-SHA256 provides message authentication — it proves both the identity of the sender (who holds the shared secret) and the integrity of the payload (any modification invalidates the signature). This prevents replay attacks and payload tampering.
Navigate to WooCommerce > Settings > Advanced > Webhooks. Create or edit a webhook and you will find the Secret field. If left blank, WooCommerce auto-generates one — copy it and store it in your receiving server's environment variables, never in source code.
Use our tool to generate a realistic payload and compute its HMAC-SHA256 signature using your local secret key. This lets you validate your signature verification logic without needing a publicly accessible ngrok tunnel or a live WooCommerce store.
DEDICATED SENIOR CAPACITY • 10 HRS/WEEK
Need this implemented or optimized on your production store?
Abdullah Al Shoyeb has delivered 150+ custom web builds, audited over 1,000 websites for Australian agency Jezweb, and acts as Main Developer for LegUp Web Design Dublin (3–4 years). Upwork Top Rated with 100% Job Success Score.
✓ Sub-150ms origin TTFB and sub-1.2s mobile LCP optimization