Impossible to remove free trial days

jake-ocean

Jan 20th, 2019 09:27 PM

I want my users to signup to my site, and be on a 'Free' plan with limited features. If they choose to add a credit card and subscribe to a higher plan they will get more features.

Right off the bat I found that the code does not respect when you set trial days to '0'.

I was able to trace this down to Auth/RegisterController.php there are 2 places where you default to 14 days if the admin setting is 0.

I was happy to change this code but then after registereding I see my user is given the 'canceled' role, even though I have a 'Free' plan with a 'Free' role, and that Plan is marked as the default.

What do I need to do to make this work?

jake-ocean

Jan 20th, 2019 09:54 PM

I think I know what the issue is.

The WaveMiddleware is setting the users role to canceled, and the reason is because the user does not have an active subscription.

I think this is because I dont ask for a credit card on signup, so Wave does not add them to my Free plan on signup which does not require a credit card.

I think using a Free plan is a very common use case so it would be great if users could be added to a free subscription on signup.

jahangir-mohammed

Feb 8th, 2019 06:21 PM

how did you fix that?