It is technically illegal to not accept cash in Denmark with very few exceptions (I checked, since it seems to be legal in Sweden), but maybe due to COVID-19 this got relaxed or is just not enforced anymore. Not that anyone would notice, nobody pays with cash anyway except for German tourists who aren't coming this year.