Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 935-939 (lines=5) @@
932
			}
933
934
			// Allow plugins to add order item meta
935
			if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
936
				do_action( 'woocommerce_add_order_item_meta', $item_id, $values, $cart_item_key );
937
			} else {
938
				do_action( 'woocommerce_new_order_item', $item_id, wc_get_product( $item_id ), $order->get_id() );
939
			}
940
		}
941
942
		// Store fees
@@ 967-971 (lines=5) @@
964
			}
965
966
			// Allow plugins to add order item meta to fees
967
			if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
968
				do_action( 'woocommerce_add_order_fee_meta', $order_id, $item_id, $fee, $fee_key );
969
			} else {
970
				do_action( 'woocommerce_new_order_item', $item_id, $fee, $order->get_id() );
971
			}
972
		}
973
974
		// Store tax rows