Oct 4, 2018
0
Level 1
Cashier 7.2 Creating a Subscription
I am in the early steps of implementing Cashier to work with Stripe for the billing of my product.
I am running Laravel 5.7.
I have the following code to create the subscription:
$token = $request->stripeToken;
$organisation = Organisation::findOrFail($request->organisationid);
$organisation->newSubscription('Test Name', 'plan')->create($token);
When I run this code, I get the error: Missing required param: source.
$request->stripeToken is received from the Stripe JS form and does display a result.
Any help is greatly appreciated
Please or to participate in this conversation.