How to verify Creem signature?
Creem signature is sent in thecreem-signature header of the webhook request. The signature is generated using the HMAC-SHA256 algorithm with the webhook secret as the key, and the request payload as the message.
Sample Webhook Header
Sample Webhook Header
To generate the signature, you can use the following code snippet:
payload is the request body, and the secret is the webhook secret.
Simply compare the generated Signature with the one received on the header to complete the verification process.