A webhook, also called a callback, is a message a service sends to your server when something happens. Instead of your system asking again and again whether an invoice has been paid, the gateway calls a URL you choose the moment its status changes.
Because anyone could send a request to that URL, a good webhook is signed with a secret only you and the service know. Your server checks the signature before trusting the message. A timestamp in the signature stops an old message from being replayed, and retries make sure a brief outage on your side doesn't lose an event.
AywaPay sends every change as a JSON event signed with your own webhook secret, using HMAC-SHA256 with a timestamp. Undelivered events are retried automatically, and you can resend one with a click. Each store has its own webhook, and the developer docs show how to verify the signature.
Common questions
Why should I verify a webhook signature?
Without it, anyone who finds your URL could send a fake paid message and get an order shipped. The signature proves the message came from the gateway.
What happens if my server is down when a webhook is sent?
AywaPay retries it automatically, and you can resend any event from the dashboard.