Well, I gave him the cash....which was $20, since I had no smaller bills.
I realized afterward that I could have said, "Oh, my wallet is in my car, if you'll give me the keys I'll give you something," and then driven away quickly. But I never think well on my feet in situations like this.