Wave - Switch to this plan

Solved
nick-jensen

Feb 10th, 2019 12:43 AM

I am experiencing an issue with the Plan Upgrade.

When you click the "Switch To This Plan" button, it seems to be reloading the page and not actively sending the POST request to the /plans/update route.

I belive it is reloading before setting the hidden input.

Anyone else with this issue?

rjkmelb

Feb 12th, 2019 04:30 PM

I can't reproduce this issue, can you please explain where you are seeing this issue?

nick-jensen

Feb 14th, 2019 05:05 PM

This is happening in the /settings/plans when there is already an active plan and card on file.

andrewo0

Feb 18th, 2019 03:13 PM

I have seen this issue when you create a subscription and then remove it out of stripe and then try to change the plan it will keep reloading. it has to do with the call it's doing to the provider it can't find the subscription so it gives a not find response.

nick-jensen

Feb 18th, 2019 04:07 PM

I believe that it is not actively setting the subscription - - This reminds me of a bug that I had to fix with the plan registration in the first place. I will keep digging.

nick-jensen

Feb 18th, 2019 04:45 PM

Best Answer

@andrewo0 - you pointed me in the right direction.

It was in the subscription controller again

$plan = Plan::where('name', '=', $request->plan)->first();

should be 

$plan = Plan::where('plan_id', '=', $request->plan)->first();
andrewo0

Feb 20th, 2019 09:26 AM

@nick-jensen

Thanks for posting your solution i think this will help other Wave Users.