How can i add my custom inputs value to original card (or LineItem) payload?

I’m trying to implement my data that get from custom input field to the original payload and with that way i want to change the price and update this price on my original payload any idea ?