How to prevent users from changing the payment value in javascript when using rest api?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- recurring payments when price maybe changed and price have 2 decimal point in REST APIs
- Change the button from Sandbox to Production in REST APIs
- Issue with Rendering Trustly Payment Button via PayPal JavaScript SDK in SDKs
- When I do PayPal capture Order, I keep on getting Invalid Request Connection in REST APIs
- Hide shipping address in Debit/Credit card form in PayPal Payments Standard