What is a payment gateway?

A merchant service that authorizes credit card or direct payments processing for merchants, typically provided through an ecommerce application service provider.