cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent users from changing the payment value in javascript when using rest api?

Options
DeeKay5
New Community Member
Posted on

Hi, as you can tell from the title, I am using Paypal rest api (client side) to complete payments. I've noticed that it is childishly simple to change the payment value by user by simply going into the js file. any way to prevent that? Been looking for a solution everywhere with no luck. Thanks.

1 REPLY 1

How to prevent users from changing the payment value in javascript when using rest api?

Options
Frigidman
Contributor

We noticed this too when we were thinking about switching to use the js-sdk. Instead, we use server-to-server API calls with their REST, to ensure the values we send them, and receive, have gone through proper channels and don't have any tampering.

 

Its a LOT of extra work to setup and develop, but in the long run, you feel more confident in the data you are sending paypal and getting back.

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.