API Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paypal team, Really, am suffering a lot due to this... I have launched Business.. But Payment gateway is working. am loosing my business. kinldy do the needful and resolve this issues as soon as possible
Our Request is :
{"POST":{"scheme":"https","host":"www.paypal.com","filename":"/v1/payments/payment","remote":{"Address":"0.0.0.0:443"}}}
{"intent":"sale","payer":{"payment_method":"paypal"},"redirect_urls":{"cancel_url":"https://www.paypal.com/checkoutnow/error","return_url":"https://www.paypal.com/checkoutnow/error"},"..."}}]}
Our Received Response is :
{"name":"VALIDATION_ERROR","message":"Invalid request - see details","debug_id":"9e2e546d752f4","information_link":"https://developer.paypal.com/docs/api/payments/#errors","details":[{"field":"/transactions/0/amount"... construct instance of `com.paypal.platform.payments.model.rest.common.Amount`, problem: INVALID_CURRENCY_AMOUNT_FORMAT"}]}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like you've got an incorrectly formatted value for the amount. In the log it shows "amount":{"total":"201.29999999999998" which would be the issue right there. You've got to make sure that you only have 2 decimal places, so that would be 201.29. If you are able, just limit your system to keeping the total value to 2 decimal places and you shouldn't run into an error like that again.
I hope that helps!
-Aaron
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Paypal 4X credit : translated message & currency error in PayPal Payments Standard
- problem to link paypal account with prestashop checkout module in PayPal Payments Standard
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs
- Members cannot pay for an event using PayPal Commerce plugin with WPForms - no pattern we can find. in PayPal Payments Standard
- I'm getting error once user try to pay via PayPal - NVP/SOAP Api Integration in NVP/SOAP APIs