|
@@ 1013-1018 (lines=6) @@
|
| 1010 |
|
); |
| 1011 |
|
} |
| 1012 |
|
|
| 1013 |
|
if ( WC()->cart->needs_shipping() ) { |
| 1014 |
|
$items[] = array( |
| 1015 |
|
'label' => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ), |
| 1016 |
|
'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ), |
| 1017 |
|
); |
| 1018 |
|
} |
| 1019 |
|
|
| 1020 |
|
if ( WC()->cart->has_discount() ) { |
| 1021 |
|
$items[] = array( |
|
@@ 1020-1025 (lines=6) @@
|
| 1017 |
|
); |
| 1018 |
|
} |
| 1019 |
|
|
| 1020 |
|
if ( WC()->cart->has_discount() ) { |
| 1021 |
|
$items[] = array( |
| 1022 |
|
'label' => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ), |
| 1023 |
|
'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ), |
| 1024 |
|
); |
| 1025 |
|
} |
| 1026 |
|
|
| 1027 |
|
if ( version_compare( WC_VERSION, '3.2', '<' ) ) { |
| 1028 |
|
$cart_fees = WC()->cart->fees; |