Shopify webhook 被调用两次

发布于 2025-01-11 09:52:44 字数 733 浏览 3 评论 0原文

我创建了一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云归处 2025-01-18 09:52:44

当我们升级或降级应用程序订阅计划时,如果之前没有激活的计划,则 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文