thirdweb-example / shopify-sell-nfts

Sell NFTs in FIAT currency using a Shopify store and webhooks!
17 stars 13 forks source link

2 Issues at req.get() in index.js #2

Open IamDushu opened 1 year ago

IamDushu commented 1 year ago

Issue - 1

"X-Shopify-Hmac-Sha256" is not available in the request. const hmac = req.get("X-Shopify-Hmac-Sha256");

Issue - 2

"X-Shopify-Order-Id" is not available in the request. const shopifyOrderId = req.get("X-Shopify-Order-Id");

IamDushu commented 1 year ago

Solution for Issue 1

Change "X-Shopify-Hmac-Sha256" to "x-shopify-hmac-sha256" Solution : const hmac = req.get("x-shopify-hmac-sha256");

Solution for Issue 2

Change "X-Shopify-Order-Id" to "x-shopify-hmac-sha256" Solution : const shopifyOrderId = req.get("x-shopify-order-id");