How to redirect user to the billing page
Hello, I was setting up billing in my app and I wanted to redirect the user to the billing page if they haven't already paid. Like if a user comes to the site, register's using their Google account, then once they come to the billing page say they change the URL to go back to the landing page, login with this newly created account then they will have effectively just bypassed the billing. I'm already checking to see if the user has paid in my middleware but as of now all I can do is redirect them back to the homepage but they can't ever pay so instead I want to redirect them to the billing page.
I'm using the Next JS app router SDK.
I'm using the Next JS app router SDK.