| @@ 222-235 (lines=14) @@ | ||
| 219 | ); |
|
| 220 | } |
|
| 221 | ||
| 222 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
| 223 | $items[] = array( |
|
| 224 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 225 | 'amount' => 0, |
|
| 226 | 'pending' => true, |
|
| 227 | ); |
|
| 228 | ||
| 229 | $data['shippingOptions'] = array( |
|
| 230 | 'id' => 'pending', |
|
| 231 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
| 232 | 'detail' => '', |
|
| 233 | 'amount' => 0, |
|
| 234 | ); |
|
| 235 | } |
|
| 236 | ||
| 237 | $data['displayItems'] = $items; |
|
| 238 | $data['total'] = array( |
|
| @@ 769-782 (lines=14) @@ | ||
| 766 | ); |
|
| 767 | } |
|
| 768 | ||
| 769 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
| 770 | $items[] = array( |
|
| 771 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 772 | 'amount' => 0, |
|
| 773 | 'pending' => true, |
|
| 774 | ); |
|
| 775 | ||
| 776 | $data['shippingOptions'] = array( |
|
| 777 | 'id' => 'pending', |
|
| 778 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
| 779 | 'detail' => '', |
|
| 780 | 'amount' => 0, |
|
| 781 | ); |
|
| 782 | } |
|
| 783 | ||
| 784 | $data['displayItems'] = $items; |
|
| 785 | $data['total'] = array( |
|