Not taking cash has actually made it to the federal court system at least once that I can remember, and one of the US District Courts of Appeal ruled that it's not legal.