includes/class-wc-stripe-payment-request.php 1 location
|
@@ 346-354 (lines=9) @@
|
| 343 |
|
); |
| 344 |
|
} |
| 345 |
|
// The tax total may include the shipping taxes if a shipping option is provided. |
| 346 |
|
if ( 0 < $tax_total ) { |
| 347 |
|
$items[] = array( |
| 348 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
| 349 |
|
'amount' => array( |
| 350 |
|
'currency' => $currency, |
| 351 |
|
'value' => $tax_total, |
| 352 |
|
), |
| 353 |
|
); |
| 354 |
|
} |
| 355 |
|
return $items; |
| 356 |
|
} |
| 357 |
|
} |
includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 648-656 (lines=9) @@
|
| 645 |
|
), |
| 646 |
|
); |
| 647 |
|
} |
| 648 |
|
if ( 0 < $tax_total ) { |
| 649 |
|
$data['items'][] = array( |
| 650 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
| 651 |
|
'amount' => array( |
| 652 |
|
'currency' => $currency, |
| 653 |
|
'value' => $tax_total, |
| 654 |
|
), |
| 655 |
|
); |
| 656 |
|
} |
| 657 |
|
|
| 658 |
|
wp_send_json( array( 'success' => 'true', 'line_items' => $this->build_line_items(), 'total' => WC()->cart->total ) ); |
| 659 |
|
} |