| @@ 669-675 (lines=7) @@ | ||
| 666 | ); |
|
| 667 | } |
|
| 668 | ||
| 669 | if ( WC()->cart->needs_shipping() ) { |
|
| 670 | $items[] = array( |
|
| 671 | 'type' => 'final', |
|
| 672 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 673 | 'amount' => $shipping, |
|
| 674 | ); |
|
| 675 | } |
|
| 676 | ||
| 677 | if ( WC()->cart->has_discount() ) { |
|
| 678 | $items[] = array( |
|
| @@ 677-683 (lines=7) @@ | ||
| 674 | ); |
|
| 675 | } |
|
| 676 | ||
| 677 | if ( WC()->cart->has_discount() ) { |
|
| 678 | $items[] = array( |
|
| 679 | 'type' => 'final', |
|
| 680 | 'label' => __( 'Discount', 'woocommerce-gateway-stripe' ), |
|
| 681 | 'amount' => $discounts, |
|
| 682 | ); |
|
| 683 | } |
|
| 684 | ||
| 685 | return $items; |
|
| 686 | } |
|