How to deny payment via PayPal IPN?

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-05-14T23:30:40Z Indexed on 2010/05/14 23:34 UTC
Read the original article Hit count: 302

Filed under:
|
|
|

Hello all,

I need to create dynamic 'Pay Now' buttons on my site, and PayPal says the way to do this is via an HTML FORM with preset variables for the price, currency, and item of the purchase. I use PayPal IPN to notify me when a payment has complete.

However, what's to stop someone from modifying the query parameters of the Pay Now button to change the price? Some people have told me to redirect the button through a PHP file that sends you to a PayPal payment page with the parameters in place, but the price could just as easily be manipulated in the Web browser's address bar. My question is, how can I deny a payment if the information I receive from PayPal's IPN service is invalid (if the price doesn't match our records)?

I'm quite confused and couldn't find any documentation on what I'm looking for. Hopefully, you guys can help.

Thanks!

© Stack Overflow or respective owner

Related posts about paypal

Related posts about ipn