SVEA-59: apply tax correctly depending on different settings.

 WARNING: this solution does not support changing tax settings in magento between authorization and capture