looks like you don't have a selectedPlan in this part of the code
if (!Spark.cardUpFront || this.selectedPlan.price == 0) { return this.sendRegistration(); }
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, after installing Spark 2.0, I try to register and I get this error Uncaught TypeError: Cannot read property 'price' of null in app.js :
if (!Spark.cardUpFront || this.selectedPlan.price == 0) { return this.sendRegistration(); }
My booted() in SparkServiceProvider looks like this:
public function booted() { Spark::useStripe()->noCardUpFront()->trialDays(9999); Spark::freePlan() ->price(0) ->features([ 'First', 'Second', 'Third' ]); }
Please or to participate in this conversation.