At one time in the distant past it used to be illegal to sell drink on credit. I think it dated back to th First World War. Not sure when that law was changed.
It also used to be the norm if you were running a tab to hold your credit card behind the bar.