You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempted to call an undefined method named "isValidWebhookHMAC" of class "Adyen\Util\HmacSignature"." at Adyen/Service/WebhookReceiver.php line 39
#539
Closed
Phobetor opened this issue
Aug 8, 2023
· 1 comment
· Fixed by #540
Describe the bug WebhookReceiver::validateHmac() calls HmacSignature::isValidWebhookHMAC() which does not exist, the method is actually HmacSignature::isValidNotificationHMAC().
To Reproduce
Steps to reproduce the behavior:
Just execute this code. There is not even a real notification required.
$receiver = new \Adyen\Service\WebhookReceiver(new \Adyen\Util\HmacSignature());
$receiver->validateHmac(['pspReference' => ''], '1234');
Expected behavior
The method should return a boolean value.
Additional context
Using version 15.0.0-beta of adyen/php-api-library.
The text was updated successfully, but these errors were encountered:
Thanks a lot for reaching out to us with this bug! We've indeed made a little mistake there during the renaming from notifications -> webhooks. I created a quick PR resolving this issue, let us know if you run into anything else.
Describe the bug
WebhookReceiver::validateHmac()
callsHmacSignature::isValidWebhookHMAC()
which does not exist, the method is actuallyHmacSignature::isValidNotificationHMAC()
.To Reproduce
Steps to reproduce the behavior:
Just execute this code. There is not even a real notification required.
Expected behavior
The method should return a boolean value.
Additional context
Using version
15.0.0-beta
ofadyen/php-api-library
.The text was updated successfully, but these errors were encountered: