@@ 260-273 (lines=14) @@ | ||
257 | ); |
|
258 | } |
|
259 | ||
260 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
261 | $items[] = array( |
|
262 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
263 | 'amount' => 0, |
|
264 | 'pending' => true, |
|
265 | ); |
|
266 | ||
267 | $data['shippingOptions'] = array( |
|
268 | 'id' => 'pending', |
|
269 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
270 | 'detail' => '', |
|
271 | 'amount' => 0, |
|
272 | ); |
|
273 | } |
|
274 | ||
275 | $data['displayItems'] = $items; |
|
276 | $data['total'] = array( |
|
@@ 864-877 (lines=14) @@ | ||
861 | ); |
|
862 | } |
|
863 | ||
864 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
865 | $items[] = array( |
|
866 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
867 | 'amount' => 0, |
|
868 | 'pending' => true, |
|
869 | ); |
|
870 | ||
871 | $data['shippingOptions'] = array( |
|
872 | 'id' => 'pending', |
|
873 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
874 | 'detail' => '', |
|
875 | 'amount' => 0, |
|
876 | ); |
|
877 | } |
|
878 | ||
879 | $data['displayItems'] = $items; |
|
880 | $data['total'] = array( |