i have two different apps in which one is a development app and other is public app, but when i tried to authenticate the request coming from order/create Webhook with the given algorithm by shopify, refer to below link:
https://shopify.dev/apps/webhooks/configuration/https#step-5-verify-the-webhook
it works with development app and authenticated with no issues but when request comes from public app it doesn’t matches the hash with shopify hmac and authentication failed…
I am using below method to generate hash…
const _hash = crypto
.createHmac(‘sha256’, “shopifyApiSecret”)
.update(JSON.stringify(req.body), “utf8”)
.digest(‘base64’);
can someone please help me to highlight mistake at my end or anything else?