-
-
Save xcommerce-gists/6273563 to your computer and use it in GitHub Desktop.
Sample function to encrypt and sign a webhooks message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$headers['magento-hmac-signature'] = hash_hmac(self::SHA256_ALGORITHM, $body, $secret); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment