2017-02-23 20 views

回答

1

您可能使用條紋的PHP的舊版本圖書館。您使用的語法與1.x版本的語法相匹配,但這些版本從不支持/v1/subscriptions端點 - 支持在版本3.13.0中添加此端點。

我會建議你使用最新版本(4.4.0)和升級整合的代碼以使用新的語法:

\Stripe\Subscription::create(array(
    "customer" => $customer_id, 
    "plan" => $plan_id, 
    "trial_end" => $strtotime, 
)); 
相關問題