includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 676-684 (lines=9) @@
|
| 673 |
|
), |
| 674 |
|
); |
| 675 |
|
} |
| 676 |
|
if ( 0 < $tax_total ) { |
| 677 |
|
$data['items'][] = array( |
| 678 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
| 679 |
|
'amount' => array( |
| 680 |
|
'currency' => $currency, |
| 681 |
|
'value' => $tax_total, |
| 682 |
|
), |
| 683 |
|
); |
| 684 |
|
} |
| 685 |
|
|
| 686 |
|
wp_send_json( array( 'success' => 'true', 'line_items' => $this->build_line_items(), 'total' => WC()->cart->total ) ); |
| 687 |
|
} |
includes/class-wc-stripe-payment-request.php 1 location
|
@@ 353-361 (lines=9) @@
|
| 350 |
|
); |
| 351 |
|
} |
| 352 |
|
// The tax total may include the shipping taxes if a shipping option is provided. |
| 353 |
|
if ( 0 < $tax_total ) { |
| 354 |
|
$items[] = array( |
| 355 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
| 356 |
|
'amount' => array( |
| 357 |
|
'currency' => $currency, |
| 358 |
|
'value' => $tax_total, |
| 359 |
|
), |
| 360 |
|
); |
| 361 |
|
} |
| 362 |
|
return $items; |
| 363 |
|
} |
| 364 |
|
} |