| @@ 721-727 (lines=7) @@ | ||
| 718 | ); |
|
| 719 | } |
|
| 720 | ||
| 721 | if ( WC()->cart->needs_shipping() ) { |
|
| 722 | $items[] = array( |
|
| 723 | 'type' => 'final', |
|
| 724 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 725 | 'amount' => $shipping, |
|
| 726 | ); |
|
| 727 | } |
|
| 728 | ||
| 729 | if ( WC()->cart->has_discount() ) { |
|
| 730 | $items[] = array( |
|
| @@ 729-735 (lines=7) @@ | ||
| 726 | ); |
|
| 727 | } |
|
| 728 | ||
| 729 | if ( WC()->cart->has_discount() ) { |
|
| 730 | $items[] = array( |
|
| 731 | 'type' => 'final', |
|
| 732 | 'label' => __( 'Discount', 'woocommerce-gateway-stripe' ), |
|
| 733 | 'amount' => '-' . $discounts, |
|
| 734 | ); |
|
| 735 | } |
|
| 736 | ||
| 737 | return $items; |
|
| 738 | } |
|