ethercreative / web-payments

Web Payments for Craft Commerce
Other
5 stars 7 forks source link

Tax Rate is added as an additional cost, even when 'Included In Price' is true. #6

Open isjackwild opened 4 years ago

isjackwild commented 4 years ago

I am using Web Payments for a store based in the EU.

In Europe, the tax rate is almost always included in the price of the product. I have a Tax Rate with the option 'Is this tax is already included in the taxable subject?' set to true, and in the checkout this means no tax is added to the subtotal price at payment (as is the case with other payment gateways). However, when using Web Payments (tested using Apple Pay) the VAT is added as an additional item.

Current behavior: – When clicking 'Apple Pay' button, the UI comes up with the cart items, shipping, and an additional VAT item, which is added to the total price.

Desired behavior: – When clicking 'Apple Pay' button, the UI comes up with only cart items and shipping cost, as taxes are already included in the price.

A fix would be fantastic, as we're very keen to use this plugin and will purchase if this can be resolved.

davecosec commented 4 years ago

@Tam @isjackwild am i mistaken in thinking that that would only work for items where the tax is already included in the price that is set in the CMS?

I have the issue where tax is not included in the price as the site ships internationally. I'm going to post a solution to this (applying the tax to the line items in the cart if a settings box is checked)

update: https://github.com/davecosec/web-payments/tree/feature/add-tax-to-line-item-price