Verify Webhook Signature
verify_webhook_signatureVerify PayMongo webhook signatures locally using the per-webhook signing secret. Validate the Paymongo-Signature header (HMAC-SHA256) without a network call.
Instructions
Locally verify a PayMongo webhook's 'Paymongo-Signature' header (HMAC-SHA256 over timestamp.body). No network call — uses the per-webhook signing secret you pass in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Which signature to verify: test (te) or live (li). | test |
| payload | Yes | The raw webhook request body, exactly as received (no re-serialization). | |
| signature_header | Yes | Value of the 'Paymongo-Signature' header (format: t=...,te=...,li=...). | |
| tolerance_seconds | No | If set, reject signatures whose timestamp is older than this many seconds (replay protection). | |
| webhook_signing_secret | Yes | The per-webhook signing secret (whsk_...) returned when the webhook was created. NOT your API secret key. |