Pauls74462 Posted March 12, 2009 Share Posted March 12, 2009 I have the php code to put on your site for PayPal, the problem is I need to encrypt it so the user can't read my code get to my download page and get software with out paying?Paul Link to comment Share on other sites More sharing options...
justsomeguy Posted March 12, 2009 Share Posted March 12, 2009 You can't encrypt the code like that, it has to be plain text. If you want to protect the download page you'll need to find a way to verify that the user has paid that you can check on the download page. When PayPal sends the user back to your site, you should be able to verify the transaction by sending the transaction info back to PayPal and looking for a response that says it's valid. If you're using the IPN feature, you could set up your IPN page to update the user's account in the database that they've paid for a certain thing, and on the download page you make sure they're logged in and look up their account to make sure they've paid for what they're downloading. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.