Comment out this in SparkServiceProvider:
// Spark::useStripe()->noCardUpFront()->trialDays(10);
Or, just remove the noCardUpFront() method from the chain.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi! First of all, sorry for my english.
I use install a fresh install of Spark (Version 3.0.5) and I can't registrer any user, I receive an error : this.selectedPlan is null. I see some post with that bug and all the solution don't work for me.
That my check list :
I add these lines in my composer.json "laravel/cashier": "~7.0", "laravel/spark": "~3.0"
I update composer / npm (v6.6) and run my npm install
I set my SparkServiceProvider :
public function booted() { Spark::useStripe()->noCardUpFront()->teamTrialDays(10); Spark::collectBillingAddress();
Spark::freeTeamPlan()
->features([
'First', 'Second', 'Third'
]);
Spark::teamPlan('Équipe - Mensuel', 'standard_montly')
->price(12)
->features([
'First', 'Second', 'Third'
]);
Spark::teamPlan('Équipe - Annuel', 'standard_yearly')
->price(120)
->yearly()
->features([
'First', 'Second', 'Third'
]);
Spark::teamPlan('Individuel - Mensuel', 'individual_montly')
->price(20)
->features([
'First', 'Second', 'Third'
]);
Spark::teamPlan('Individuel - Annuel', 'individual_yearly')
->price(200)
->yearly()
->features([
'First', 'Second', 'Third'
]);
}
After all, if I check the page sources codes, I see the window.Spark = ... "cardUpFront":true but it must be false!
Thanks for your help !
Simon
Please or to participate in this conversation.