Credit card fee

Hi, the customer want to add a “convenience” fee (3.1%) for people using a credit card (using the pro forms). How can we implement this to the payment form? I looked in the settings, but could not see anywhere to add a fee for anything (could have missed the obvious of course!)

Any help is appreciated,