HMAC is a code calculated from the content of the message and a secret key that only the platform and you know. It travels in a header, alongside the webhook.

On your end, you recalculate the same code with the same key and compare them. If they match, the notification is legitimate and no one altered the data along the way. If they don't match, you discard it.

Without this check, anyone who discovers your webhook's address could send a fake approved-sale notification and unlock access to your product for free.