Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Created August 19, 2013 20:15
Show Gist options
  • Save xcommerce-gists/6273563 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/6273563 to your computer and use it in GitHub Desktop.
Sample function to encrypt and sign a webhooks message
$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