As has been noted a few times, Germany is the outlier here - powerhouse economy in the EU but an oddity that a lot of places (restaurants etc.) will only take cash.
India has a lot of places that are cash only too, I'd like to also add to the list Madagascar, Guinea and Liberia - although it depends where you go. If you go to a more local place, yes, but if you're eating at hotels and 'nice' restaurants (quite common in the capital cities) then card is no problem.
How so? We took out a wad of cash in Israel (spent just over a week there) and didn't end up needing it, ended up using it for a taxi to the airport in the end.
Egypt I paid card everywhere too. Jordan was card everywhere for us also, except the odd small tourist shop to buy small things like a magnet and such.
Ran into this one at Rotterdam train station. First day we bought a train ticket no worries using my UK card. The next day we were told sorry, don't take international cards. Same window as we used the day before, same person even .... so work that one out!