A payment gateway is an online service that processes payments for e-commerce sites and even traditional retail stores' checkout carts.
Payment gateways can process payments using a variety of methods, including PayPal, Square, and Stripe.