hi all, i am creating a e-commerce website where customers buy a product and then pay through paypal. once they have paid they get automatically sent back to a download page on our site. When they get to this page it automatically starts the download of the product they have just paid for. My question is: Is there a way i can 'protect' this download page until they (the customer) have paid for the download. Thanks
you could set a session variable with the redirect page, and only display the file for download if the session variable is set.
Yes you can. I'm doing it here : popup-window.net I can give you paid support if you would like to have. Thanks
I created a small web app for the exact kind of jobs: http://www.winkcart.com/ If you want to code your own and you use PayPal. You may want to familiarize yourself with PayPal IPN: https://www.paypal.com/cgi-bin/webscr?cmd=p/acc/ipn-info-outside https://www.paypal.com/ipn Basically once the payer makes the payment the payment status would be 'Completed' and PayPal would notify your script. When your script verifies that it's a legitimate and valid transaction notification from PayPal, it then makes changes to your database such as updating the user account as a paid customer, so he has the privileges to download the precious good.