Shopify webhook 被调用两次
我创建了一个 APP_SUBSCRIPTIONS_UPDATE
webhook。当我安装应用程序并将第一个计划升级到第二个计划时,webhook 仅运行 1 次。但此后,当我升级或降级应用程序订阅计划时,Webhook 会在每个计划更改事件上运行两次。这是 shopify 文档链接 和 webhook 日志
这里是 shopify-app.php 和 作业文件。
I have created an APP_SUBSCRIPTIONS_UPDATE
webhook. When I install an app and upgrade the first plan to the second plan, the webhook is run only 1 time. But after that when I upgrade or downgrade the app subscription plan, the webhook is run twice on each plan change event. here is shopify doc link and webhook log
here is shopify-app.php and job file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我们升级或降级应用程序订阅计划时,如果之前没有激活的计划,则 Shopify 仅发送一个处于 ACTIVE 状态的 Webhook。如果存在之前激活的计划,则 Shopify 会发送两个 Webhook,一个用于已取消的计划,另一个用于新激活的计划。
When we upgrade or downgrade an app subscription plan that time if there is no previous activated plan then Shopify only sent one webhook with ACTIVE status. if there is a previously activated plan then Shopify sent two webhook one for the CANCELLED plan and one for a newly activated plan.