There is PayPal IPN PHP example code https://www.x.com/developers/PayPal/documentation-tools/code-sample/216623
Could somebody please tell me how it's secured as I don't get it?
Example: I have an internet shop. I dont have https.
- receive a data from PayPal on our http://my-magazine.com/process_pp.php This data is not encrypted because my site is on http. Am I right? So (if it's not encrypted) some hacker can change it.
- We send a https request to verify our payment on paypal.
- PayPal answers INVALID with http (not https) so hacker can change it again on VERIFIED. Hacker gets profit.
Please tell me, where is my mistake. I am confused because other payment systems use SecretKey
and then you should verify the hash they sent.