cash is legal tender recognized by the country you are in. There should be no rationale to refuse it.
If you ate, and tried to give the restaurant $50 cash to cover the bill, what's the restaurant going to do? Call the cops? The cops will just tell the owner to take the cash or forget about it.