Re: Is it secure to pass a variable Amount to a Smart PayPal Button using the client side integratio

I don't believe that it is secure. When it comes to payments and setting up your order doing it all client side is fine for a demo but, not production (in my opinion).

A person can just put a break point on the return statement and make the totalAmount js var equal to any value they want. Then you need to make sure when you are verifying the order that the amounts match up. If you do this all server side then you take away this option.