Answer the question
In order to leave comments, you need to log in
How to set up access to the page only after payment?
node js,
express,
react.
How can I set up access to a page on my site only after paying for the goods?
Those. the payment system has Fail URL and Success URL redirects.
It is necessary that users cannot enter the page in any way, because. on it will be given an access key to the program, except for redirection by success.
P.s. I ask not for the solution of my question, but at least the direction of what to google)
Answer the question
In order to leave comments, you need to log in
Success URL, let the user's ID be written to the database and paid: true, and when entering the desired page, let it be checked, and if not, then redirect?
Success URL, let the user's ID be written to the database and paid: true, and when entering the desired page, let it be checked, and if not, then redirect?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question