我创建了一个运营商服务:
$webhook_array = array(
"carrier_service" => array(
"name" => "Shipping Rate Provider",
"callback_url"=> site_url."/carrierservice_test.php",
"format"=> "json",
"service_discovery" => true
)
);
$webhooks = $shopify('POST', '/admin/carrier_services.json', $webhook_array);
此代码成功创建了运营商服务,但此运营商服务未点击我的应用。
访问结帐页面时未调用以下内容:
callback url "callback_url"=> site_url."/carrierservice_test.php"
答案 0 :(得分:0)
您至少需要将其激活。做一个像:
PUT /admin/carrier_services/{{id}}.json
{
"carrier_service": {
"id": {{id}},
"active": true
}}