Integrations and API
How do I set up webhooks?
Set the store's Status URL, create a webhook signing secret, and verify the X-AywaPay-Signature header on every request.
Updated
- On the store's Invoices tab, set the Status URL: we POST every invoice change there. You can also pass a
callback_urlper invoice. - On the Webhooks tab, create the webhook signing secret. It is not your API key and can't call the API.
- On your server, check the
X-AywaPay-Signatureheader on every webhook before you trust it.
Answer with any 2xx status. Anything else is retried, and the same event can arrive twice, so process each event once. The Webhooks tab has a Webhook log where you can see every delivery and its answer.
Step-by-step code: how to verify crypto payment webhooks.
Related articles
Didn't find what you need?
Contact us