Skip to content
FlatCryptoPay

Webhook inspector

Get a temporary URL that captures webhook requests for 24 hours. Paste it as an endpoint in your dashboard, click "Send test event", and inspect headers, body and signature here. Verification runs in your browser; your signing secret never leaves this page.

Verify signatures in your server

Node.js
import crypto from 'node:crypto';
// rawBody: the exact bytes received (do not re-serialize JSON)
function verify(rawBody, headers, secret) {
  const ts = headers['x-fcp-timestamp'];
  const sig = headers['x-fcp-signature'];
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // replay window
  const expected = crypto.createHmac('sha256', secret).update(ts + '.' + rawBody).digest('hex');
  return sig.length === expected.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}
Start free: no fees, no documents