c# - Validating payment amounts with WorldPay -
We are using WorldPay for the payment process for a global membership system, for which the amount of payment is selected subscription Depends on the level.
& lt; Input type = "hidden" name = "zodiac" value = "295.00" /> Basically, the form is deposited on WorldPage through POST and the user adheres to several steps to process their payments. Once completed, the user is taken to a specific confirmation page.
It appears that the World Package accepts payments. There is a clear issue here, in which the value of the hidden field can be easily tampered with the basic knowledge of HTML. The form is posted directly to the WorldPoint, so we do not have any postback in which the amount against the membership level Can be verified.
We have the option to validate the payment process, routing the callback through a handler before the confirmation page; However, I would like to avoid the situation where the user presents a tampering form, pays the wrong amount and receives no membership, then the company has to contact to refund its money.
How can we validate that the amount deposited is correct
, even if we validate the form after the server server, there is nothing to stop the malicious user from cheating the post directly for the WorldPackage.
This is actually a vulnerability, it can be easily resolved using the signature. Check out this link:
This method should be promoted better on the help page, it is very bad.
Comments
Post a Comment