Global Payments interview question

Explain how card payments work