Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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)