A payment gateway is a technology that allows merchants to accept debit or credit card payments from customers. It includes both the physical card-reading devices used in brick-and-mortar retail stores, as well as the online payment processing portals used in e-commerce.