My understanding of the situation in the UK, at least, is that whilst one can refuse a transaction for any reason (e.g. I won’t sell you a coffee for cash), if a debt has been incurred (e.g. during a hotel stay), and the debtor offers legal tender (cash), then they cannot be pursued for the debt if you refuse to accept it.