We've moved discussions to Discord

change subscription plan from monthly to yearly

It seems like by default users can change their subscription plan from yearly to monthly, but not the other way round?

I'm using Stripe.
Chris Oliver
They can switch back and forth. You'll have to share some more details so I can replicate it and see what's going on.
This is what I've done:
1. Clone the JSP repo and setup the Stripe credentials
2. Setup the Plans in the admin:
Screenshot 2020-08-07 at 3.37.33 PM.png 34.7 KB

3. If an user has subscribed to the monthly plan, this is what's shown at /subscription/edit:
     The button says Current Plan   there's no option to change plan.

Screenshot 2020-08-07 at 3.41.11 PM.png 30.4 KB


3. If an user has subscribed to the yearly plan, this is what's shown at /subscription/edit:
     The button says Change Plan , this allows the user to change plan from yearly to monthly.

Screenshot 2020-08-07 at 3.42.51 PM.png 31.1 KB
 

Chris Oliver
Looks like the monthly / yearly toggle is just hidden. I'll check the Javascript to see what's happening. 👍
Chris Oliver
Alrighty, just pushed up a fix for that. I had forgotten to update this view to match the pricing page. Basically just needed to fix the data attributes on the plans to match.

From this:
<div data-target="pricing.monthlyPlans" class="hidden flex-wrap items-center justify-center -mx-4">

To this:
<div data-target="pricing.plans" data-frequency="yearly" class="hidden flex-wrap items-center justify-center -mx-4">

And same for the yearly plans.
thanks Chris, it's working great now!
Notifications
You’re not receiving notifications from this thread.