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