Does PayPal accept 3 or more decimal Unit Price?

saurabh_dhir
Contributor
Contributor

Hi,

I am a developer working for my client. 

 

We are facing an issue with PayPal Express Checkout for orders having item priced in 3 decimal like $0.055

 

A problematic order would be buying 4001 units of a product having a price of $0.055

$0.055 * 4001 = $220.055‬

 

On PayPal Express checkout I get the following error:

Error:

10413: The totals of the cart item amounts do not match order amounts.

 

The issue gets fixed if I round the unit price to 2 decimal price i.e. $0.055 to $0.06 but the order total becomes $240.06.

 

I don't want to round the unit price but instead rounding the subtotal i.e. 220.055‬ to 220.05 (round down)

 

Please confirm where I am lacking.

 

Does PayPal allow to pass unit prices up to 3 decimals or more? or it only accepts unit price up to 2 decimals?

 

Awaiting your response.

 

Thanks

Saurabh <removed>

Login to Me Too
1 REPLY 1

outofideas
New Community Member

If I read it correctly, according to the API , the number of decimals depends on the currency. For example, EUR only supports 2 decimals.

 

See https://en.wikipedia.org/wiki/ISO_4217#Active_codes

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.