Woocommerce get items in the orders before it is process on checkout

Solution:

Try using this action hook(/includes/class-wc-checkout.php) :

/**
 * Action hook to adjust order before save.
 *
 * @since 3.0.0
 */
do_action( 'woocommerce_checkout_create_order', $order, $data );