Processing WebHook Notifications
Behavior of webhook notifications described here and notification verification is here. SDK incapsulates verification logic providing an easy way to validate notification. But there are some important points.
Method
Validation of notification requires such properties:
method - Notification request method
url - Notification request url. For example if your server under domain example.com handles notification by path /0xpay than url will be example.com/0xpay. You can access it by concatenating header "host" and request path(url).
timestamp - Unix timestamp, receiving in headers
signature - Notification signature, receiving in headers
rawBody - String of unparsed request body
Verifying a notification (webhook)
Example with express:
Last updated