Processing WebHook Notifications
Last updated
Last updated
Behavior of webhook notifications described and notification verification is here. SDK incapsulates verification logic providing an easy way to validate notification. But there are some important points.
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
Example with express: