Note the wording on dollar bills:
> This note is legal tender for all debts, public and private.
See also USC §5103:
> United States coins and currency [...] are legal tender for all debts, public charges, taxes, and dues.
Thus a private person is only obligated to accept cash as repayment for a debt, not for purchases.