I am developing a webhook listener for my store, in order to connect it to an SMS sending service.
However, I'm stuck at the stage of checking the integrity of the requests I receive (checking if they are really from Shopify).
I am following the documentation to implement this, but even when I copy and paste the provided code, I always get the code 401 (unauthorized). I believe I'm using the correct verification key (the one in the notifications tab, under the webhooks created).
Can anyone tell me what is going on? Was there an update in the dependencies of the code that made it obsolete?
# The following example uses Python and the Flask framework to verify a webhook request:
from flask import Flask, request, abort
app = Flask(__name__)
# The Shopify app's client secret, viewable from the Partner Dashboard. In a production environment, set the client secret as an environment variable to prevent exposing it in code.