Skip to content

Commit 13a0c97

Browse files
committed
Add code snippets for checking an incoming message
1 parent 309c297 commit 13a0c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

messages/signed-webhooks/verify-webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
$client->sms()->send($message);
1515

1616
// Incoming Request
17-
$signature = new Vonage\Client\Credentials\SignatureSecret(VONAGE_API_KEY, VONAGE_SIGNATURE_SECRET, 'sha256');
17+
$signature = new Vonage\Client\Signature(VONAGE_API_KEY, VONAGE_SIGNATURE_SECRET, 'sha256');
1818
$isValid = $signature->check($_GET['sig']);

0 commit comments

Comments
 (0)