CHARGE DIFFERENT FEES ACCORDING TO PAYMENT METHOD

Hi, I need to charge different fees on my website according to the type of payment method the client chooses. For example if my client pays in cash I need to charge him a 3% fee but if he pays in credit card I dont need to charge him any extra fee.

Anyone knows how to do this?