oseintow / laravel-shopify

Laravel Shopify Package
71 stars 42 forks source link

Not able to verify webhook #37

Open raju-emadri opened 4 years ago

raju-emadri commented 4 years ago

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");
}

}