Skip to content

Klarna & rounding issues

David de Boer edited this page Nov 16, 2018 · 3 revisions

It's possible that a Klarna payment is not possible, because of calculation and rounding issues (Dutch: verschillen in de afronding van bedragen).

The essence of the problem is that with Klarna payments the amounts are checked, and because during that check there are rounding differences, no payment can be made. You can see that in this error message:

The amount of the order does not match the total amount from the order lines. Expected order amount to be €23.84 but got €23.85.

This is probably due to custom code or another plugin that will round amounts at the wrong moment. We've seen this before with:

  • plugins that add costs to the payment methods
  • plugins that influence shipping costs (table rate shipping)

Check your site for plugins like these, disable them temporarily and try to find out of they are indeed the cause of the issue.

You can also get rounding issues when this option is enabled: WooCommerce > Settings > Tax > Round tax at subtotal level, instead of rounding per line

Plugins with known issues

This plugin hasn't had updates in 5 years and isn't updated for WooCommerce 3.x. Use another plugin, and if that plugin also has these rounding issues, please contact [email protected]. We will not support issues with WooCommerce Table Rate Shipping Module.

Update to at least 4.1.3 that contains fix "Fixed: Improper rounding in Subtotal condition for comma decimal separators".

Clone this wiki locally