Impossible to remove free trial days

Posted In Wave
  • jake-ocean 1 year ago
    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?

    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 1 year ago
    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.

    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 1 year ago
    how did you fix that?

    how did you fix that?

  • mrfallen 9 months ago
    @jahangir-mohammed, u must edit WaveMiddleware. Change 'cancelled' to 'user' for example.

    @jahangir-mohammed, u must edit WaveMiddleware. Change 'cancelled' to 'user' for example.

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!