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.
- Using Paypal Smart Buttons for checkout sometimes fails with Debit/ Credit Cards Form in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Disputes Webhook does not works on Sandbox (23/04/24) in Sandbox Environment
- Issue with Empty store_info in Response Using /v1/reporting/transactions on Sandbox API in REST APIs
- Connecting with site to take payments in Payflow
- Change the button from Sandbox to Production in REST APIs