Reputation: 93
I'm doing a PayPal payment system. The steps are:
redirect to url paypal and add on item and price:
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_cart&upload=1&[email protected]&cy_code=USD&lc=US&item_name_1=Black
Gold&item_number_1=1&quantity_1=1&amount_1=$58.00
Question: But using this method, user can change the price easily by downloading the page from my site and changing the script. So any protection I can do for this?
I have 2 ideas now. But I don't think they're good solutions.
Upvotes: 0
Views: 77
Reputation: 15253
Use a POST request to send the data and not a GET request (using URL params). Also, use the PayPal IPN notification system to notify you in the situation that somebody tampers with passed values using a hack:
Upvotes: 1