Dynamic Paypal button encryption

前端 未结 6 1454
日久生厌
日久生厌 2020-11-27 16:52

I\'m designing a Order Site using PHP & Mysql. In the final stage the user is given Paypal buttons to pay for the Orders he has made. So, the Item Name, Value are variab

6条回答
  •  悲哀的现实
    2020-11-27 17:25

    From your post you seem very confused about what encryption means and what to apply it to. What is the threat model? (i.e. how can it be subverted).

    There is no way you should expect that paypal will always process the order you sent to the client's browser. You MUST check what Paypal did process.

    You can be better assured of the integrity of the order after it leaves your site, e.g. by adding a hash of the order to the order number (and a salt!) you send to Paypal. This should allow you to verify the order without reference to the PLU/stored order (as long as the script processing the return from paypal knows the salt).

提交回复
热议问题