Webhook event signature verification and secure handling guide
Webhook signature verification is a security mechanism that ensures the webhook events you receive are genuinely from PaymentGate, not from malicious attackers attempting to forge requests. Each webhook request includes an encrypted signature generated using a shared secret key.
Payment status changes
Encrypt with secret key
POST to your endpoint
Confirm event authenticity
PaymentGate includes the signature in the HTTP header of each webhook request:
PaymentGate-Signature: t=1618840000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
t = Timestamp (Unix time)
v1 = HMAC-SHA256 signature