Offer in cash, when they say they won't take it, get it in writing, signed by a manager or somesuch (bonus points if you bring a notary), then walk away.
If/when they bring it up in court produce your document, claim that because they refused payment (as documented) you considered it a gift.
I like your idea. Interestingly, the example I was thinking about is trying to purchase a meal with cash on a flight.