A payment gateway is a commercial service offered by an e-commerce application service provider that allows direct payments or credit cards for online merchants, bricks and clicks, or conventional brick and mortar stores.
A banking institution may provide a payment gateway to its clients, but it can also be offered as a separate service by a specialized financial service provider, such as a payment service provider.