You're missing an important distinction: Cash is legal for all DEBTS. Nothing says the store can't refuse to take cash, as long as they also prevent you from establishing a debt. For example, a restaurant that doesn't want to take cash must force you to pay before you eat.