System Design Question Preview
Design a payment gateway that helps merchants validate card payments from POS terminals. When a customer taps, inserts, or swipes a card, the POS device sends a request to your service. Your system should validate the request, route it to the correct issuing bank or card network, and return an approved, declined, or error response quickly.