I don't think it's accurate to say restaurants are extending credit to their customers. If you walk out without paying, it's theft, not defaulting on a loan.
Let's say you had a business that only accepted pokemon cards as payment. One of your customers does not pay their bill, so you take them to small claims court. The judge is going to rule that they pay you the value of the card, because debts are settled with money.