Webhooks
Event delivery, signing, retries, health monitoring, replay protection, and dashboard verification for PayToCommit enterprise integrations.
Delivery examples cover HRS updates, consent changes, export completion, billing threshold alerts, and report-ready events.
Replay protection and retry idempotency are documented alongside the verification recipe so teams can deploy safely from the start.
import crypto from "node:crypto";
export function verifyPayToCommitSignature(rawBody: string, signature: string, secret: string) {
const expected = crypto
.createHmac("sha256", secret)
.update(rawBody)
.digest("hex");
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
}Use the raw request body and reject stale timestamps before processing the event.
Webhook delivery is signed, retry-aware, and organization-scoped. The dashboard shows event health, retry pressure, and the last verified delivery for every endpoint.
Delivery examples cover HRS updates, consent changes, export completion, billing threshold alerts, and report-ready events.
Each request carries a verifiable signature and timestamp that should be checked before your system trusts the payload.
Replay protection and retry idempotency are documented alongside the verification recipe so teams can deploy safely from the start.