How to implement a subscribe with payment ?
Hi, For some type of visitor i want to implement a subscribe before register, i tried to implement my offers tabs, but the problem is that people do subscribe but don't have a form to register, how to implement a sequence where people subscribe then create their accounts ?
i tried to play with the : setting('billing.card_upfront')){{ route('wave.register-subscribe')}}
but i got an error saying that the route register-subscribe doesn't exist
What should i do ?
Hi there,
When you enable the Require Credit Card Up Front
in your Voyager admin, this will ask the users to subscribe before they get an account:
After a successful payment, a new account will be created automatically with the email that they've specified during the Paddle checkout process and they would get to the following form where they can add details for their new account:
Let me know if this works for you
Best,
Bobby
















Hi Bobby,
Thanks for the answer. But my problem is that i want to force card upfront only for people coming from some countries outside mine.
So overall this option is disabled, but i want to enable it only for some countries (i managed to get the ip and the country)
But the route "route('wave.register-subscribe')" is nowhere to be found.
Humm maybe it's this part that is missing :
"After a successful payment, a new account will be created automatically with the email that they've specified during the Paddle checkout process and they would get to the following form where they can add details for their new account:"
Hey,
I think that you could achieve this by extending the logic in the wave/src/Http/Controllers/Auth/RegisterController.php
file and mainly the showRegistrationForm()
method:
public function showRegistrationForm()
{
if(setting('billing.card_upfront')){
return redirect()->route('wave.pricing');
}
return view('theme::auth.register');
}
In there you could add an additional check to see if the user IP is outside your country and redirect them to the pricing page rather than the registration page.
Let me know how it goes!
Ha yes that is nice, because i handled it in the same page with an if else and that made errors, people that paid, didn't got their account created. It happened 1-2 times but this error is heavy to handle plus people send requests to paddle it's a hassle.
I'll try your advice and handle it in controller before showing the forms
Thanks
Sounds like a plan! Let me know how it goes!
Seems cool.