Before covid-19 most places in japan accepted only cash. Pretty much only major chains were guaranteed to support electronic payments.
In comparison here in Europe many smaller shops still refuse to take cards or you used to be charged extra when paying with card.