I have started a small software company, and I am selling my applications on line via PayPal. I was having trouble handling the serial numbers to unlock the program Essentially, the user downloads the demo, and buys the key to unlock it.
What is the best / simplest way to do this?
Currently, I have PayPal send them to a page after the purchase that stores a session variable and redirects them to a new page. The new page checks the session variable and if it exists, it shows the key and deletes the session variable so if they refresh or return to the page, the key is gone. This works OK but it is clunky and I have had to re send the key to alot of visitors that moved on before PayPal redirected them.
Can anyone give me a better idea on how I can give someone a key only if they have successfully purchased it?
Thanks.
What is the best / simplest way to do this?
Currently, I have PayPal send them to a page after the purchase that stores a session variable and redirects them to a new page. The new page checks the session variable and if it exists, it shows the key and deletes the session variable so if they refresh or return to the page, the key is gone. This works OK but it is clunky and I have had to re send the key to alot of visitors that moved on before PayPal redirected them.
Can anyone give me a better idea on how I can give someone a key only if they have successfully purchased it?
Thanks.