As of late, i've been getting an exception:
ShopifyApiException Object ( [method:protected] => POST [path:protected] => /admin/recurring_application_charges.json [params:protected] => Array ( [recurring_application_charge] => Array ( [name] => Trial Plan [price] => 6.99 [return_url] => http://fakeurl.com/return.php [trial_days] => 7 [test] => true ) ) [response_headers:protected] => Array ( [http_status_message] => Bad request [http_status_code] => 400 [cache-control] => no-cache [connection] => close [content-type] => text/html ) [response:protected] => [message:protected] => Bad request [string:Exception:private] => [code:protected] => 400 [file:protected] => /ba/libs/shopify.php [line:protected] => 68 [trace:Exception:private] => Array ( [0] => Array ( [file] => /ba/controllers/main/ra_return.ctrls.php [line] => 146 [function] => call [class] => ShopifyClient [type] => -> [args] => Array ( [0] => POST [1] => /admin/recurring_application_charges.json [2] => Array ( [recurring_application_charge] => Array ( [name] => Trial Plan [price] => 6.99 [return_url] => http://fakeurl.com/return.php [trial_days] => 7 [test] => true ) ) ) ) [1] => Array ( [file] =>
I'm using the php api, and my code hasn't changed in the last year and a half. The call I make is:
$bill_result = $sc->call('POST', '/admin/recurring_application_charges.json', array('recurring_application_charge'=>array('name'=>ucwords($data->shop_data->shop_plan_name).' Plan','price'=>$charge_price,'return_url'=>ROOT_URL.'/return.php','trial_days'=> 7,'test'=>'true')));
Something has changed, what's going on???