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