What happens when you swipe your credit card?

What happens when you swipe your credit card?