Laravel unable to get HTTP_X_SHOPIFY_HMAC_SHA256 header from shopify
I've been following the documentation for the webhook verification (https://shopify.dev/apps/webhooks/configuration/https#step-5-verify-the-webhook) to get our app verified and keep getting error saying
Undefined index: HTTP_X_SHOPIFY_HMAC_SHA256
Tried getting it using laravel builtin function
$request->header('HTTP_X_SHOPIFY_HMAC_SHA256') and also
$_SERVER['HTTP_X_SHOPIFY_HMAC_SHA256'] but both are still returning the same error.
Can anyone point me to a solution to this, been stuck with this problem for a week now.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.