API Issue

preethamsathish
Contributor
Contributor

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"}]}

 

Login to Me Too
1 REPLY 1

MTS-Aaron
PayPal Employee
PayPal Employee

Hi @preethamsathish 

 

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

Login to Me Too

Haven't Found your Answer?

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