Setting up webhooks
To receive webhooks, specify a webhook URL in the pairing request. Once set up, Payment Service will send webhook events to that URL whenever relevant actions take place.Webhook security and signing
Each webhook request is signed using an HMAC SHA256 signature, based on the exact JSON payload sent in the body. This signature is included in theSignature HTTP header of the request.
The secret key used to compute the signature is returned in the pairing response, which is part of the Terminal Pairing flow.
You can verify webhook authenticity by computing the HMAC signature and comparing it to the Signature header included in the webhook request.
Example: Verifying a webhook signature
Recommended response statuses
200 OK- Accepted and processed400 Bad Request- Invalid payload or known exception (triggers retries)403 Forbidden- Signature verification failed500 Internal Serviver error- Temporary server issue (triggers retries)