Cash is rarity only in developed countries, In my country we still use Cash and TBH once I went to a famous mobile brand for repairing and I did not asked them if they have debit, or digital payment system as I thought they are in a big city, and a big brand how can they not have one. Well after repairing, when I asked them to give me their digital accounts to pay they said we only accept cash and I was like what!
Well, they repaired my phone, so I had to search for a bank and after 30 minutes I came back to pay the money it was so embarrassing too not only for me I think they should be embarrassed as well. In my country digital payment sytem, credit/debit etc. is rare while in yours cash is rare we are not same haha. I hope with time our country will adopt this and speaking of buying and selling in crypto (in your dreams).
To avoid such situations I ask retailers in advance whether they accept digital payment or not, specially when I don't have cash in my hand. In my country (Pakistan) digital payment is getting acceptance and I can buy bakery items, pay for car repair through mobile payment services. There are few exceptions where retailers don't accept digital payment but I am sure with time they will switch to digital payment methods because it's the need of the hour. If government can provide incentives to retailers who accept digital payment systems then we can have an ecosystem where there is no cash and all payments will be made digitally.
It is necessary to be prepared for such situations in advance. Before shopping, it is necessary to learn whether cash or card payment is available. Businesses should also be prepared for similar situations and increase their payment method options. In many countries, businesses have more than one payment method and customers do not have any difficulty in this regard, but in some countries, cash is used too much and there is no card payment option.
Governments should make things easier for their citizens in such matters. Governments should tell businesses to increase their payment methods and should check whether they are implementing these methods. Countries that keep up with technology can develop faster. Countries should keep up with technology and offer many options for their citizens. Carrying cash is not easy today and shopping with a card provides great convenience.