What really happens when you select "debit" or "credit" with your Visa card

In the NYT today, a piece that explains exactly what goes on behind the scenes when you're at the checkout stand and select "debit" or "credit" with your Visa bank card. Short version: two ways to screw you!