includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 351-359 (lines=9) @@
|
| 348 |
|
); |
| 349 |
|
|
| 350 |
|
// Include fees and taxes as displayItems. |
| 351 |
|
foreach ( WC()->cart->fees as $key => $fee ) { |
| 352 |
|
$data['items'][] = array( |
| 353 |
|
'label' => $fee->name, |
| 354 |
|
'amount' => array( |
| 355 |
|
'currency' => $currency, |
| 356 |
|
'value' => $fee->amount, |
| 357 |
|
), |
| 358 |
|
); |
| 359 |
|
} |
| 360 |
|
if ( 0 < $tax_total ) { |
| 361 |
|
$data['items'][] = array( |
| 362 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
includes/class-wc-stripe-payment-request.php 1 location
|
@@ 278-286 (lines=9) @@
|
| 275 |
|
); |
| 276 |
|
|
| 277 |
|
// Include fees and taxes as displayItems. |
| 278 |
|
foreach ( WC()->cart->fees as $key => $fee ) { |
| 279 |
|
$data['items'][] = array( |
| 280 |
|
'label' => $fee->name, |
| 281 |
|
'amount' => array( |
| 282 |
|
'currency' => $currency, |
| 283 |
|
'value' => $fee->amount, |
| 284 |
|
), |
| 285 |
|
); |
| 286 |
|
} |
| 287 |
|
if ( 0 < $tax_total ) { |
| 288 |
|
$data['items'][] = array( |
| 289 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |