I had such a case, however, not at a cafe, but in a taxi when I was driving and had to pay by card and I thought that I had funds and they would be debited automatically. I think the driver didn't notice it right away and I just left but when I got home I noticed that I didn't have any money and so I called the driver to wait and I gave him the cash