New Client Secret Key doesn't validate hmac when I get a webhook

New Client Secret Key doesn't validate hmac when I get a webhook

AWS_Developer
Shopify Partner
1 0 0

When I updated the secret key, I can't validate it when receiving a webhook. Everything works fine with the old one.

This is a function with which we try to validate the callback:

Знімок екрана 2024-07-04 о 14.43.33.png

I noticed that the new secret key has a different structure than the old one.

Also I tried to verify hmac parameter with shopify sdk https://packagist.org/packages/phpclassic/php-shopify - everything is the same, with a new key the validation does not pass.

Perhaps someone has faced such a problem and can share its solution

Replies 0 (0)