The Federal Reserve Bank of Atlanta did a study showing 97% of consumers had some kind of payment card(debit, credit, prepaid), and 99% of consumers used cash. So there is probably still some consumer that is not being satisfied by either payment cards or cash. If I was running a business, I don't think I would particularly care about that small of a slice of users to base my decision on it - it would probably come down to other things like overall cost of supporting cards or cash.
https://www.atlantafed.org/-/media/documents/banking/consume...
https://abcnews.go.com/US/cashless-stores-restaurants-banned...
[1]https://www.reddit.com/r/nyc/comments/vcebns/im_an_ex_employ...
This would not apply in a shop of course as they could just refuse to sell you the goods.
In the US at least.
I work with a lot of unbanked individuals in low-income areas of NYC, so I am familiar with some of their struggles. I can't say I agree with this law, though. There was a store near me robbed at gunpoint not too long ago, and I felt so bad for the worker who had to go through that, not to mention how scary it is to feel like armed robbers are casing my neighborhood. So I feel glad for people like the coffee lady I mentioned, who have chosen to avoid that risk entirely.
I understand the good intentions behind the law, but I think there are other ways to help unbanked individuals that would still allow business owners to chose how they accept payment.