Change cartItem data related to shipment

I would like to develop a one page checkout. To do it, I should know which type of payment method the customer set before. So I save the shipment method key in the cart item. Is it correct?