I've mainly seen it in small businesses - e.g. food vendors - but instead they charge extra for using electronic payment methods. Also to offset the costs they're making on offering it I suspect, but it does encourage people to pay with cash.
A card tx fee of around 1% is common. At 10% it’s tax evasion.
> but instead they charge extra for using electronic payment methods.
That is illegal in the UK. That is why many trades people here will accept bank transfers but not cards.