mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Merge pull request #373 from woocommerce/pcp-333-fix-tax-mismatch
Use subtotal_tax instead of adding taxes ourselves
This commit is contained in:
commit
2638486331
2 changed files with 8 additions and 2 deletions
|
@ -64,7 +64,7 @@ class AmountFactory {
|
|||
);
|
||||
|
||||
$taxes = new Money(
|
||||
(float) $cart->get_cart_contents_tax() + (float) $cart->get_discount_tax(),
|
||||
$cart->get_subtotal_tax(),
|
||||
$currency
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue