includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 667-675 (lines=9) @@
|
| 664 |
|
); |
| 665 |
|
|
| 666 |
|
// Include fees and taxes as displayItems. |
| 667 |
|
foreach ( WC()->cart->fees as $key => $fee ) { |
| 668 |
|
$data['items'][] = array( |
| 669 |
|
'label' => $fee->name, |
| 670 |
|
'amount' => array( |
| 671 |
|
'currency' => $currency, |
| 672 |
|
'value' => $fee->amount, |
| 673 |
|
), |
| 674 |
|
); |
| 675 |
|
} |
| 676 |
|
if ( 0 < $tax_total ) { |
| 677 |
|
$data['items'][] = array( |
| 678 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
includes/class-wc-stripe-payment-request.php 1 location
|
@@ 338-346 (lines=9) @@
|
| 335 |
|
} |
| 336 |
|
} |
| 337 |
|
// Include fees and taxes as display items. |
| 338 |
|
foreach ( WC()->cart->fees as $key => $fee ) { |
| 339 |
|
$items[] = array( |
| 340 |
|
'label' => $fee->name, |
| 341 |
|
'amount' => array( |
| 342 |
|
'currency' => $currency, |
| 343 |
|
'value' => $fee->amount, |
| 344 |
|
), |
| 345 |
|
); |
| 346 |
|
} |
| 347 |
|
// The tax total may include the shipping taxes if a shipping option is provided. |
| 348 |
|
if ( 0 < $tax_total ) { |
| 349 |
|
$items[] = array( |