https://europa.eu/youreurope/business/finance-and-tax/making...
(Yes, I know UK isn’t in EU anymore but pretty sure their rule is legacy from EU)
This may be true, but State and Federal law prevail. In California, this [0] looks to be the relevant regulation:
1748.1. (a) No retailer in any sales, service, or lease transaction with a consumer may impose a surcharge on a cardholder who elects to use a credit card in lieu of payment by cash, check, or similar means. A retailer may, however, offer discounts for the purpose of inducing payment by cash, check, or other means not involving the use of a credit card, provided that the discount is offered to all prospective buyers.
Most mom-and-pop places I shop at here in San Francisco either offer discounts for paying in cash or have signs up suggesting that folks pay in cash so the business keeps more of the transaction.[0] <https://law.justia.com/codes/california/code-civ/division-3/...> The official place to find this would probably be [1] , but that's super down for me at the moment, so I link to something unofficial.
[1] <https://leginfo.legislature.ca.gov/faces/codes_displaySectio...>