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