Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-stripe-apple-pay.php 2 locations

@@ 931-935 (lines=5) @@
928
			}
929
930
			// Allow plugins to add order item meta
931
			if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
932
				do_action( 'woocommerce_add_order_item_meta', $item_id, $values, $cart_item_key );
933
			} else {
934
				do_action( 'woocommerce_new_order_item', $item_id, wc_get_product( $item_id ), $order->get_id() );
935
			}
936
		}
937
938
		// Store fees
@@ 963-967 (lines=5) @@
960
			}
961
962
			// Allow plugins to add order item meta to fees
963
			if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
964
				do_action( 'woocommerce_add_order_fee_meta', $order_id, $item_id, $fee, $fee_key );
965
			} else {
966
				do_action( 'woocommerce_new_order_item', $item_id, $fee, $order->get_id() );
967
			}
968
		}
969
970
		// Store tax rows