@@ 1040-1045 (lines=6) @@ | ||
1037 | ); |
|
1038 | } |
|
1039 | ||
1040 | if ( WC()->cart->needs_shipping() ) { |
|
1041 | $items[] = array( |
|
1042 | 'label' => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ), |
|
1043 | 'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ), |
|
1044 | ); |
|
1045 | } |
|
1046 | ||
1047 | if ( WC()->cart->has_discount() ) { |
|
1048 | $items[] = array( |
|
@@ 1047-1052 (lines=6) @@ | ||
1044 | ); |
|
1045 | } |
|
1046 | ||
1047 | if ( WC()->cart->has_discount() ) { |
|
1048 | $items[] = array( |
|
1049 | 'label' => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ), |
|
1050 | 'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ), |
|
1051 | ); |
|
1052 | } |
|
1053 | ||
1054 | if ( version_compare( WC_VERSION, '3.2', '<' ) ) { |
|
1055 | $cart_fees = WC()->cart->fees; |