Hi,
So the problem is that with the "Round prices during calculations" setting activated, HikaShop will round the price without taxes before the calculations are done.
So if you have a price without taxes at 16.625, HikaShop will round the price to 16.63 before calculating the taxes and summing up both to get 19.96
I understand why you don't want that. In that case you would have to turn off this "Round prices during calculations" setting. We made it especially for this.
However, if you do that, then you can potentially get MISMATCH errors with PayPal. That's because PayPal only accept 2 decimals and it calculates itself the prices and check that the total it calculates corresponds to the total the PayPal plugin provides.
To avoid that, the only option is to turn on the "Round prices during calculations" setting setting so that HikaShop will make the calculations like PayPal, basing itself on prices with 2 decimals.
But in that case, you won't be able to get 19.95 in your example.
I'm afraid I don't have a quick solution here. The solutions I can think of would be:
- For PayPal to not recalculate the total and just take into account the total amount provided by the PayPal plugin
- For PayPal to allow for more decimals for the items in the order so that the PayPal plugin could provide more accurate prices which would allow it to reach the same total as what HikaShop can calculate with the "Round prices during calculations" setting turned off.
- To add an extra setting to the PayPal plugin to be able to not send the details of the order, just the total amount. That way, there is no calculation needed on PayPal's end. We'll look into adding this for the next version of HikaShop.