Skip to content

Commit 3efe4f8

Browse files
committed
cD connect markers
1 parent 0815f1b commit 3efe4f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ConnectWebhookHMACValidation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ abstract class ConnectWebhookHMACValidation
88
* Useful reference: https://www.php.net/manual/en/function.hash-hmac.php
99
* NOTE: Currently DocuSign only supports SHA256.
1010
*/
11+
#ds-snippet-start:Connect1Step1
1112
private static function computeHash($secret, $payload)
1213
{
1314
$hexHash = hash_hmac('sha256', $payload, utf8_encode($secret));
@@ -18,4 +19,5 @@ public static function hashIsValid($secret, $payload, $verify)
1819
{
1920
return hash_equals($verify, self::computeHash($secret, $payload));
2021
}
22+
#ds-snippet-end:Connect1Step1
2123
}

0 commit comments

Comments
 (0)