Yes last year during covid stuff I went to buy some light bulbs for the house and the lighting shop refused to take cash. I said it's legal tender and must be accepted as payment by law. They begrudgingly accepted the cash after that. I only have a debit card as well not credit card.
I was surprised the shop didn't take cash payment considering they'd made my food...I guess they value wastage more than profits. I'll not be back.