Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 905-909 (lines=5) @@
902
			}
903
904
			// Allow plugins to add order item meta
905
			if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
906
				do_action( 'woocommerce_add_order_item_meta', $item_id, $values, $cart_item_key );
907
			} else {
908
				do_action( 'woocommerce_new_order_item', $item_id, wc_get_product( $item_id ), $order->get_id() );
909
			}
910
		}
911
912
		// Store fees
@@ 937-941 (lines=5) @@
934
			}
935
936
			// Allow plugins to add order item meta to fees
937
			if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
938
				do_action( 'woocommerce_add_order_fee_meta', $order_id, $item_id, $fee, $fee_key );
939
			} else {
940
				do_action( 'woocommerce_new_order_item', $item_id, $fee, $order->get_id() );
941
			}
942
		}
943
944
		// Store tax rows