That's normal in the service industry, or in shops, for example. You get what you want, then pay on leaving. If you don't pay they detain you.
Try leaving your local restaurant without someone paying for the food. They won't care if you paid your friend for the meal and he kept the money.