| @@ 220-233 (lines=14) @@ | ||
| 217 | ); |
|
| 218 | } |
|
| 219 | ||
| 220 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
| 221 | $items[] = array( |
|
| 222 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 223 | 'amount' => 0, |
|
| 224 | 'pending' => true, |
|
| 225 | ); |
|
| 226 | ||
| 227 | $data['shippingOptions'] = array( |
|
| 228 | 'id' => 'pending', |
|
| 229 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
| 230 | 'detail' => '', |
|
| 231 | 'amount' => 0, |
|
| 232 | ); |
|
| 233 | } |
|
| 234 | ||
| 235 | $data['displayItems'] = $items; |
|
| 236 | $data['total'] = array( |
|
| @@ 752-765 (lines=14) @@ | ||
| 749 | ); |
|
| 750 | } |
|
| 751 | ||
| 752 | if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
|
| 753 | $items[] = array( |
|
| 754 | 'label' => __( 'Shipping', 'woocommerce-gateway-stripe' ), |
|
| 755 | 'amount' => 0, |
|
| 756 | 'pending' => true, |
|
| 757 | ); |
|
| 758 | ||
| 759 | $data['shippingOptions'] = array( |
|
| 760 | 'id' => 'pending', |
|
| 761 | 'label' => __( 'Pending', 'woocommerce-gateway-stripe' ), |
|
| 762 | 'detail' => '', |
|
| 763 | 'amount' => 0, |
|
| 764 | ); |
|
| 765 | } |
|
| 766 | ||
| 767 | $data['displayItems'] = $items; |
|
| 768 | $data['total'] = array( |
|