There is no federal law forcing someone to take cash. Many businesses refrain from it in high amounts for security purposes.
Cash is legal tender for all debts public and private.
So there’s that.