How customize automated bank surcharge

We are trying to look on customization of automation of credit card surcharge in pos and invoice so every card transaction get automation bank surcharge depends on the terminal use