Stripe - undefined method Stripe\\Subscription::create()
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I am having a problem creating a stripe payment and keep getting this error. Here is the code. } else if($stripetoken != "") { $customer = \Stripe\Customer::create(array( "email" => $email, "source" => $stripetoken, )); if ($term == "1") { \Stripe\Subscription::create(array( <-- line 219 "customer" => $customer->id, "plan" => "monthly-sub-test", )); } I believe I have set up the code to what the documentation says https://stripe.com/docs/subscriptions/quickstart 回答1: You are using an older version of Stripe's PHP library . The \Stripe