It seems maybe a dozen different places I have been to over the past couple of months have either forbidden anything but cash to pay for food or services, or have included a 3-4% uplift of bills to cover the bank charges to them when credit cards are used.
Most are local restaurants.
My takeaway is they are struggling financially and are willing to sideline some of their customers who do not carry cash and are unwilling to pay the bank fee.
In my case, I will never agree to pay extra to use a credit card, so it has caused me to carry around more cash than I am accustomed to. I am also selective on where I go should I get caught with insufficient cash in my pocket.