Disable input for mode of Credit Card Payment

Hey

Please is there anyway i can disable inputting value for Credit card when making payment. I only want the field to auto populate either the total amount or the balance left after inputting in cash