# Payment Gateway

> The service that takes card details at checkout. It passes them on safely to be checked.

**Field:** Business & Startups  
**Category:** E-commerce  
**Also known as:** Online Payment Gateway, Card Payment Gateway

## Think of it like

It is like the card machine at a till, but on a website. It takes the card safely and passes it on.

## Definition

A payment gateway is the service that takes a buyer's card details at checkout and passes them on safely. It scrambles the data and sends it to the payment processor. Then it brings back the answer, yes or no, in a few seconds. Online, it does the job of the card machine at a till. Many firms sell the gateway and the processor together.

## Example

A buyer types her card number. The gateway scrambles it and sends it on, and two seconds later the page says payment approved.

## Why it matters

It keeps card data safe and lets a store take cards at all. If it fails, no one can pay.

## Common mistake

Keeping card numbers on your own server. The gateway is there so you never have to touch them.

## Three principles

- **Capture.** Take the card details.
- **Protect.** Scramble them on the way.
- **Answer.** Approved or declined, fast.

## Related terms

- [Payment Processor](https://learn.benibix.com/term/business/payment-processor)
- [Stripe](https://learn.benibix.com/term/business/stripe)
- [Checkout](https://learn.benibix.com/term/business/checkout)
- [Chargeback](https://learn.benibix.com/term/business/chargeback)
- [Application Programming Interface (API)](https://learn.benibix.com/term/development/api)

## Told apart from

- [Payment Gateway vs Payment Processor](https://learn.benibix.com/compare/payment-gateway-vs-payment-processor): People use these names as if they meant the same thing, and they do not. The gateway takes the card details at checkout and passes them on safely. The processor then moves the money through the card network and the banks. Many firms, like Stripe, sell both in one.

![A card payment, left to right. The buyer at checkout, then the payment gateway, then the payment processor, then the card network, then the buyer's bank. An answer arrow runs back: approved, in about two seconds. A second arrow below, later, runs money from the buyer's bank to the seller's bank, less fees.](https://learn.benibix.com/diagrams/biz2-payment-flow.svg)

---

Source: https://learn.benibix.com/term/business/payment-gateway
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
