Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
when a user pay money to get license and comes back to the page "License.aspx" in my site .
I should give them license.
how hide the page for those who open this page directly?(www.mysite.com/License.aspx)
how to give them just one license.(by refreshing page they can get another license)
sorry i am new in asp.net.
thank you in advance.
Posted
Comments
onelopez 17-Oct-14 9:00am    
you could create a token form your application and pass it through your licensing web app. if the token is missing then redirect the user back to the main page.
Not sure. Get the details from the gateway support. There must something to validate.

After paying the money, from that page you should get a token. You must be using some gateway for paying online. That gateway would return one token after successful transaction. Read that token and do whatever you want to do.

If you don't find any token, then simply redirect the user to any other page or show some message.
 
Share this answer
 
Comments
Which gateway?
Thank you all
I think I understood what should i do
when a user comes back from paying .gateway send some data and i store the data and give a license to user .if user refresh the page because of saving that data i do not give them another license.
if a user open this URL directly that data is null!
I am so sorry. because of poor English and knowledge .
 
Share this answer
 
Comments
No need to sorry. Good work, keep it up. Finally you understood what I was pointing you to.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900