Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

huddo's avatar
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

0 likes
0 replies

Please or to participate in this conversation.