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

TPRAsh's avatar

Spark Subscription showing monthly - should be yearly

I am having an issue where the subscription panel is showing the yearly plan as monthly. For example, I have one plan for $10.00 / Monthly and the other says $100.00/Monthly <- should be yearly.

I have checked the SparkServiceProvider booted code and it looks correct and the Stripe subscription is set to yearly for that plan. I can see that the info is spawned in with plan.interval but I have no idea with this is not working.

booted() {code} Spark::useStripe()->noCardUpFront()->trialDays(7);

    Spark::plan('Monthly', 'monthly_1')
        ->price(10)
        ->features([
            'Our Monthly plan is a low $10 USD a month'
        ]);

    Spark::plan('Yearly', 'yearly_1')
        ->price(100)
        ->features([
            'Our yearly plan is a low $100 USD.',
            
        ]);

{code}

Any help would be much appreciated.

0 likes
2 replies
TPRAsh's avatar

OMG - such a noob error - I solved it with adding ->yearly() to the Spark::plan.

3 likes
jhull's avatar

Uhhh...I actually appreciate you putting this out there. I made the same mistake. Thanks!

1 like

Please or to participate in this conversation.