Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to verify webhook #37

Open
raju-emadri opened this issue May 5, 2020 · 0 comments
Open

Not able to verify webhook #37

raju-emadri opened this issue May 5, 2020 · 0 comments

Comments

@raju-emadri
Copy link

raju-emadri commented May 5, 2020

I have used most of the functions from your package and all work great, except webhook.
The result always return empty. Logs "verification failed" message
public function verifyWebhook(Request $request)
{
$data = $request->getContent();
$hmacHeader = $request->server('HTTP_X_SHOPIFY_HMAC_SHA256');

if (Shopify::verifyWebHook($data, $hmacHeader)) {
    logger("verification passed");
} else {
    logger("verification failed");
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant