在 demo.php
$url='https://hooks-beta.bigcommerce.com';
$fields = array(
"producer"=>"store/bgf5e",
"scope"=>"store/order/*",
"deliverymethod"=>"HTTP_POST",
"destination"=>array(
"url"=>"http://shopifywebhook.faculty.com/demo.php"
),
);
我得到响应当我手动更新大型商业中的订单时,它会给出以下结果
string(160) "{"store_id":481868,"producer":"store/bgf5e","scope":"store/product/updated","data":{"type":"product","id" :85},"哈希":"2ca388118ff19587b5b1ed55fd58cdb74c3186aef4"}"
这与“范围”=>“商店/订单/*”这个范围无关,即订单做错了什么或者 webhook 对 bigcommerce 不起作用?我希望响应是订单 ID 并输入“订单”,但在上方您可以看到 Product 和 Id =85
谢谢兰吉特·戈拉夫