Surcharge fees on debit and credit card transactions will be ditched, despite strong opposition from businesses.