How to sign Webhooks data
Last updated
Was this helpful?
Last updated
Was this helpful?
With the Webhook Key that you obtain in the creation process, you can sign the data that you receive to verify that it is send it to you by us.
In the validator, a Hash must be created with the key, saved in the webhook creation process, and then compared with the secret attribute, sent in the request with the following attributes:
In the controller, must validate the header and use a signature validator to verify the request send it.
In the validator, a hash must be created with the key, saved in the webhook creation process, and then compared with the secret attribute, sent in the request. If these match, the data is validated and it is certain that the data sent is safe.
t: The “t” attribute represents the timestamp.
s: The “s” attribute represents the secret key (webhook key).