New to the community? Welcome! Please read our Community Rules and Guidelines
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:
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.
If I read it correctly, according to the API , the number of decimals depends on the currency. For example, EUR only supports 2 decimals.
©1999-2020 PayPal, Inc. All rights reserved.