Skip to Content

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

شما نیاز به ثبت‌نام دارید تا بتوانید با جامعه تعامل داشته باشید.
این سوال علامت‌گذاری شده است
1 پاسخ
4 نماها

This explains the webhook verification process for Public Apps, including a Python code snippet to validate the HMAC signature.

آواتار
رها کردن
مولف پاسخ برتر
  • Custom Apps: ❌ No (no Shared Secret).
  • Public Apps: ✅ Use X-Shopify-Hmac-Sha256 with Shared Secret: 
  • import hmac, hashlib, base64
  • def verify_webhook(data, hmac_header, secret):
  •     digest = hmac.new(secret.encode('utf-8'), data, hashlib.sha256).digest()
  •     return hmac.compare_digest(base64.b64encode(digest).decode(), hmac_header)
آواتار
رها کردن
نوشته های مرتبط پاسخ‌ها نماها فعالیت
1
سپتامبر 25
4
1
سپتامبر 25
6
1
سپتامبر 25
4
1
سپتامبر 25
5
1
سپتامبر 25
4
logo-samandehi