I want to make changeable price with corvid on form

When i do that i think also we have to create a payment function ? So can you explain a little bit more please