| @@ 201-214 (lines=14) @@ | ||
| 198 | ); |
|
| 199 | } |
|
| 200 | ||
| 201 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
| 202 | $items[] = array( |
|
| 203 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 204 | 'amount' => 0, |
|
| 205 | 'pending' => true, |
|
| 206 | ); |
|
| 207 | ||
| 208 | $data['shippingOptions'] = array( |
|
| 209 | 'id' => 'pending', |
|
| 210 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
| 211 | 'detail' => '', |
|
| 212 | 'amount' => 0, |
|
| 213 | ); |
|
| 214 | } |
|
| 215 | ||
| 216 | $data['displayItems'] = $items; |
|
| 217 | $data['total'] = array( |
|
| @@ 747-760 (lines=14) @@ | ||
| 744 | ); |
|
| 745 | } |
|
| 746 | ||
| 747 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
| 748 | $items[] = array( |
|
| 749 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 750 | 'amount' => 0, |
|
| 751 | 'pending' => true, |
|
| 752 | ); |
|
| 753 | ||
| 754 | $data['shippingOptions'] = array( |
|
| 755 | 'id' => 'pending', |
|
| 756 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
| 757 | 'detail' => '', |
|
| 758 | 'amount' => 0, |
|
| 759 | ); |
|
| 760 | } |
|
| 761 | ||
| 762 | $data['displayItems'] = $items; |
|
| 763 | $data['total'] = array( |
|