| @@ 696-702 (lines=7) @@ | ||
| 693 | ); |
|
| 694 | } |
|
| 695 | ||
| 696 | if ( WC()->cart->needs_shipping() ) { |
|
| 697 | $items[] = array( |
|
| 698 | 'type' => 'final', |
|
| 699 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 700 | 'amount' => $shipping, |
|
| 701 | ); |
|
| 702 | } |
|
| 703 | ||
| 704 | if ( WC()->cart->has_discount() ) { |
|
| 705 | $items[] = array( |
|
| @@ 704-710 (lines=7) @@ | ||
| 701 | ); |
|
| 702 | } |
|
| 703 | ||
| 704 | if ( WC()->cart->has_discount() ) { |
|
| 705 | $items[] = array( |
|
| 706 | 'type' => 'final', |
|
| 707 | 'label' => __( 'Discount', 'woocommerce-gateway-stripe' ), |
|
| 708 | 'amount' => '-' . $discounts, |
|
| 709 | ); |
|
| 710 | } |
|
| 711 | ||
| 712 | return $items; |
|
| 713 | } |
|