Webhook
This is the request we make to the callback URL you have sent on the merchant dashboard
Last updated
signature = request.headers["signature"]
if signature exists:
payload = request.raw_body
secret = "YOUR_MERCHANT_CALLBACK_SECRET"
computed = HMAC_SHA256(payload, secret)
if secure_compare(computed, signature) is false:
return HTTP 401 Unauthorized
process webhook
return HTTP 200 OK