【发布时间】:2016-08-03 15:30:10
【问题描述】:
我正在使用this shopify api code。我已设法安装我的应用,但现在当我尝试在拨打电话时为我的应用设置费用时,我收到此错误:
Exception in api.php line 512:
ERROR #3: <url> malformed
这是我的代码:
$charge_params = array (
'recurring_application_charge' => array (
'name' => 'Name Of Charge',
'price' => 10,
'return_url' => 'https://dev.shopify.com/show_products/', // also tried escaping the url so https:\/\/dev.shopify.com\/show_products\/
'test' => true
)
);
$charge = $sh->call(['URL' => '/admin/recurring_application_charges.json', 'METHOD' => 'GET', 'DATA' => ['charge_params' => $charge_params]], false);
谁能看到我做错了什么?我怀疑这可能是传递$charge_params 的方式。没有关于如何传递收费数据的文档我可以看到。
【问题讨论】: