doujiexin1136 2016-03-08 16:04
浏览 267
已采纳

在通过API创建订单时,Shopify Webhook不会触发

When I create an order through the orders API the webhook for orders/create does not fire, however, if a real order comes through the store the webhook successfully fires.

Does anyone know how I can use the orders API to create an order and have the webhook trigger?

  • 写回答

2条回答 默认 最新

  • douzi8916 2016-03-08 17:55
    关注

    Order hook for shopify triggers every-time, sometimes even multiple times and it triggers for order-update too when order is created. There must be something wrong that you were trying.

    You can use logger to write down to a file with extension ".txt". So that you can know how many times web-hook is triggered or it's triggered or not.

    You can use this: https://github.com/Seldaek/monolog

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?