The ban on surcharges for credit & debit cards has been in force since January 13th, 2018.
Further details here: https://www.businesscompanion.info/en/quick-guides/pricing-a...
https://www.gov.uk/government/publications/payment-surcharge...