| @@ 262-275 (lines=14) @@ | ||
| 259 | ); |
|
| 260 | } |
|
| 261 | ||
| 262 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
| 263 | $items[] = array( |
|
| 264 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 265 | 'amount' => 0, |
|
| 266 | 'pending' => true, |
|
| 267 | ); |
|
| 268 | ||
| 269 | $data['shippingOptions'] = array( |
|
| 270 | 'id' => 'pending', |
|
| 271 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
| 272 | 'detail' => '', |
|
| 273 | 'amount' => 0, |
|
| 274 | ); |
|
| 275 | } |
|
| 276 | ||
| 277 | $data['displayItems'] = $items; |
|
| 278 | $data['total'] = array( |
|
| @@ 821-834 (lines=14) @@ | ||
| 818 | ); |
|
| 819 | } |
|
| 820 | ||
| 821 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
| 822 | $items[] = array( |
|
| 823 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 824 | 'amount' => 0, |
|
| 825 | 'pending' => true, |
|
| 826 | ); |
|
| 827 | ||
| 828 | $data['shippingOptions'] = array( |
|
| 829 | 'id' => 'pending', |
|
| 830 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
| 831 | 'detail' => '', |
|
| 832 | 'amount' => 0, |
|
| 833 | ); |
|
| 834 | } |
|
| 835 | ||
| 836 | $data['displayItems'] = $items; |
|
| 837 | $data['total'] = array( |
|