includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 319-327 (lines=9) @@
|
| 316 |
|
); |
| 317 |
|
|
| 318 |
|
// Include fees and taxes as displayItems. |
| 319 |
|
foreach ( WC()->cart->fees as $key => $fee ) { |
| 320 |
|
$data['items'][] = array( |
| 321 |
|
'label' => $fee->name, |
| 322 |
|
'amount' => array( |
| 323 |
|
'currency' => $currency, |
| 324 |
|
'value' => $fee->amount, |
| 325 |
|
), |
| 326 |
|
); |
| 327 |
|
} |
| 328 |
|
if ( 0 < $tax_total ) { |
| 329 |
|
$data['items'][] = array( |
| 330 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
includes/class-wc-stripe-payment-request.php 1 location
|
@@ 234-242 (lines=9) @@
|
| 231 |
|
); |
| 232 |
|
|
| 233 |
|
// Include fees and taxes as displayItems. |
| 234 |
|
foreach ( WC()->cart->fees as $key => $fee ) { |
| 235 |
|
$data['items'][] = array( |
| 236 |
|
'label' => $fee->name, |
| 237 |
|
'amount' => array( |
| 238 |
|
'currency' => $currency, |
| 239 |
|
'value' => $fee->amount, |
| 240 |
|
), |
| 241 |
|
); |
| 242 |
|
} |
| 243 |
|
if ( 0 < $tax_total ) { |
| 244 |
|
$data['items'][] = array( |
| 245 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |