Shopify HMAC parameter verification failing in Python
Shopify HMAC parameter verification failing in Python Question: I’m having some trouble verifying the HMAC parameter coming from Shopify. The code I’m using per the Shopify documentation is returning an incorrect result. Here’s my annotated code: import urllib import hmac import hashlib qs = “hmac=96d0a58213b6aa5ca5ef6295023a90694cf21655cf301975978a9aa30e2d3e48&locale=en&protocol=https%3A%2F%2F&shop=myshopname.myshopify.com×tamp=1520883022” Parse the querystring params = urllib.parse.parse_qs(qs) Extract the hmac value …