Rest API - Webhooks and Events
Identify the error in this Python webhook verification snippet:
import hmac
import hashlib
secret = "mysecret"
payload = "data"
signature = "abc123"
computed = hmac.new(secret, payload.encode(), hashlib.sha256).hexdigest()
if computed == signature:
print("Verified")
else:
print("Not verified")