cancel
Showing results for 
Search instead for 
Did you mean: 

Does PayPal accept 3 or more decimal Unit Price?

Highlighted
Contributor

Does PayPal accept 3 or more decimal Unit Price?

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>

1 REPLY 1
Highlighted
New Community Member

Re: Does PayPal accept 3 or more decimal Unit Price?

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