Skip to content

Commit

Permalink
Merge pull request #540 from Adyen/jillingk-patch-2
Browse files Browse the repository at this point in the history
Update WebhookReceiver.php
  • Loading branch information
jillingk authored Aug 18, 2023
2 parents 7c88d9d + 4b8129f commit 9585978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adyen/Service/WebhookReceiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
public function validateHmac($response, $hmacKey)
{
$isTestWebhook = $this->isTestWebhook($response['pspReference']);
if (!$this->hmacSignature->isValidWebhookHMAC($hmacKey, $response)) {
if (!$this->hmacSignature->isValidNotificationHMAC($hmacKey, $response)) {
if ($isTestWebhook) {
$message = 'HMAC key validation failed';
throw new HMACKeyValidationException($message);
Expand Down

0 comments on commit 9585978

Please sign in to comment.