includes/class-wc-stripe-payment-request.php 1 location
|
@@ 336-344 (lines=9) @@
|
| 333 |
|
} |
| 334 |
|
} |
| 335 |
|
// Include fees and taxes as display items. |
| 336 |
|
foreach ( WC()->cart->fees as $key => $fee ) { |
| 337 |
|
$items[] = array( |
| 338 |
|
'label' => $fee->name, |
| 339 |
|
'amount' => array( |
| 340 |
|
'currency' => $currency, |
| 341 |
|
'value' => $fee->amount, |
| 342 |
|
), |
| 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( |
includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 639-647 (lines=9) @@
|
| 636 |
|
); |
| 637 |
|
|
| 638 |
|
// Include fees and taxes as displayItems. |
| 639 |
|
foreach ( WC()->cart->fees as $key => $fee ) { |
| 640 |
|
$data['items'][] = array( |
| 641 |
|
'label' => $fee->name, |
| 642 |
|
'amount' => array( |
| 643 |
|
'currency' => $currency, |
| 644 |
|
'value' => $fee->amount, |
| 645 |
|
), |
| 646 |
|
); |
| 647 |
|
} |
| 648 |
|
if ( 0 < $tax_total ) { |
| 649 |
|
$data['items'][] = array( |
| 650 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |