What Is a Payment Gateway?

Category: PrestaShop & eCommerce ยท Updated 2026-11-14

A payment gateway is the technology that captures a shopper's card or bank details at checkout and passes them securely to a payment processor and the card networks for approval. It returns an approve or decline answer within seconds, without the merchant's own server ever needing to see or store the raw card number. Common examples include Stripe, PayPal, Square and Authorize.net.

What a payment gateway actually does

When a shopper clicks "pay," the gateway encrypts the card details and forwards them toward the banking system instead of letting that data sit on the store's own server. The typical path looks like this:

  1. The shopper enters card details on the checkout page.
  2. The gateway encrypts the data and sends it to a payment processor.
  3. The processor routes the request through the card network (Visa, Mastercard, etc.) to the shopper's issuing bank.
  4. The issuing bank approves or declines the charge based on funds and fraud checks.
  5. The response travels back through the same chain, and the gateway tells the store "approved" or "declined" in roughly one to a few seconds.

Gateway vs. processor vs. merchant account

These three terms are often confused because many providers bundle them into one product. The gateway is the piece that captures and transmits the transaction data. The payment processor is the company that actually moves the money between the card network and the banks involved. The merchant account is the bank account that receives the funds before they settle into the business's regular account. Services such as Stripe, PayPal and Square combine all three so a small store does not need to set up each piece separately.

Hosted checkout, embedded fields or a direct API

IntegrationHow it worksPCI burden on the store
Hosted checkoutShopper is redirected to the gateway's own payment pageLowest; card data never touches the store's server
Embedded fieldsCard fields are loaded from the gateway inside an iframe on the store's own pageLow; card data still bypasses the store's server
Direct APIThe store's own server collects card data and sends it to the gateway's APIHighest; the store must meet stricter PCI DSS requirements

Most small and mid-size stores use a hosted page or embedded fields precisely to avoid the extra compliance work that comes with handling raw card numbers directly.

What to check before choosing a gateway

  • Supported payment methods: cards, digital wallets, bank transfers and local methods your customers expect.
  • Fees: a per-transaction percentage plus sometimes a fixed fee, and whether there is a monthly charge.
  • Payout speed: how many days funds take to reach your bank account.
  • Platform support: a ready-made plugin for WooCommerce, PrestaShop, Shopify or whichever platform you run.
  • Fraud and chargeback tools: built-in screening reduces disputed payments.

Frequently asked questions

What is a payment gateway in simple terms?

A payment gateway is the service that securely sends a shopper's card details to the banking system for approval and sends back a yes or no answer at checkout, without the store itself needing to see the raw card number.

What is the difference between a payment gateway and a payment processor?

The gateway captures and transmits transaction data from the checkout page, while the processor is the company that moves the actual funds between the card network and the banks. Many providers offer both under one brand.

Do I need a payment gateway for a small online store?

Yes, if you accept card payments directly on your site. Services like Stripe, PayPal or Square provide a gateway along with the processing and settlement, so a small store usually only needs to sign up for one of these rather than build anything from scratch.

Is using a payment gateway enough to be PCI compliant?

Using a hosted checkout or embedded fields from a reputable gateway greatly reduces what your own site has to secure, but you still need basic practices like HTTPS everywhere and keeping your software updated. Full compliance also depends on completing the relevant self-assessment questionnaire.

Can I accept online payments without a payment gateway?

Not through an automated checkout. Without a gateway you would have to take payments manually, for example by phone or a separate invoicing tool, which does not scale for a real online store.

Why was my customer's payment declined even though the gateway was working?

A decline usually comes from the issuing bank, not the gateway, due to reasons such as insufficient funds, an expired card, or the bank's own fraud rules. The gateway is only reporting back what the bank decided.

Related topics