I don't know if I can find any English sources but here is one from the ombudsmand in Danish: https://www.forbrugerombudsmanden.dk/hvad-gaelder/betalingst...
I don't know if I can find any English sources but here is one from the ombudsmand in Danish: https://www.forbrugerombudsmanden.dk/hvad-gaelder/betalingst...
The legal reasoning is based on freedom of contract (avtalsfrihet). The shop has to take cash, but since what the shop does is enter a contract with you (agrees to sell certain goods for a certain price), it can choose to make cashless payment a condition of the contract. The same reasoning gives the shop the freedom to only accept paper bills and not coins for instance.
This doesn't apply to public entities as freedom of contract is much more limited or non-applicable there - a public hospital must allow patients to pay in cash.
I think Denmark introduced that law after seeing what had happened in Sweden.
Retail in Denmark does not particularly like to take cash and you can see a lot of signs about "no cash stored after closing" and empty register drawers etc. in Copenhagen. I would expect lots of these stores to switch to cash-only as soon as they can. Such a law happened in Sweden already and you just need to go to Malmö C to see stores not accepting cash at all.