But all of the ones discussed are drive through restaurants. There you typically place an order through a microphone, and only later do you drive up to a window where you can pay.
On the inside of the same establishments, you typically will place an order, pay, receive a receipt, then later on exchange the receipt for your food.
So, if the place is busy, the person immediately behind you has already placed their order at the time you receive and pay for yours.