[email protected] wrote:
I'm getting the error - 10413: The totals of the cart item amounts do not match order amounts. This only occurs intermittently, depending on what items are in the cart.
I think the problem is caused by rounding when calculating prices of items without tax (our prices include a 10% tax), when multiple items are in the cart.
This is my example case. I have a product worth $124.99 (Inc tax). I add 2 of this product to the cart. In the PayPalOrderService.GetPaymentDetails the itemTotalWithDiscount, which excludes tax, is calculated at $227.25 but the 2 cart items are calculated at $113.63 each. So when these are added together they equal $227.26. A 1 cent difference due to rounding.
Just wondering if there is something wrong with my configuration or if there is a small bug here? Any help would be much appreciated.
This is a bug in nopCommerce - they know about it. For now you have to fix the code to sort the rounding out. I will try free up a developer to share the code we used to fix this.
Apologies for the lack of replies here, we are a little swamped at the moment. We have been made aware of the multiple currency issue. Just to re-iterate, the code is open source on Codeplex. We are encouraging people to join in and submit bug fixes and feature enhancements. https://paypalexpressnopcommerce.codeplex.com/