Wave - Switch to this plan
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?
This is happening in the /settings/plans when there is already an active plan and card on file.
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.
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.
@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();