All posts

Blog

Payment Gateway Basics: How Online Stores Accept Card Payments

Illustrated cover for the eCommerce guide "Payment Gateway Basics: How Online Stores Accept Card Payments"

To most shoppers, paying online feels instant: type in a card number, click a button, done. Behind that button is a chain of companies that check, approve and move the money. As a store owner, you do not need to understand every technical detail, but knowing the basics helps you choose the right provider, understand fees and troubleshoot problems.

Here are the payment gateway basics every online store owner should know.

The key players in an online payment

The customer and their card issuer

The customer's bank (the issuing bank) issued their credit or debit card. It decides whether to approve a transaction based on available funds, fraud checks and the card's status.

The card networks

Visa, Mastercard, American Express and Discover run the networks that carry transaction information between banks and set many of the rules merchants must follow.

The payment gateway

The payment gateway is the technology that securely captures payment details at checkout and sends them on for authorization. It is the online equivalent of a card terminal in a physical store. It encrypts data, passes it along and returns an approved or declined response to your store.

The payment processor

The processor handles the communication between your gateway, the card networks and the banks. In many modern services, the gateway and processor are bundled together, so you deal with only one company.

The acquiring bank and merchant account

The acquiring bank holds a merchant account on your behalf, where card payments land before being transferred to your regular business bank account. Some providers give each business its own merchant account; others use an aggregated model where many merchants share one master account. The aggregated approach makes signup much faster, which is why it is popular with small businesses.

What happens when someone clicks "Place order"

  1. The customer enters their card details or uses a digital wallet at checkout.
  2. The gateway encrypts the details and sends them to the processor.
  3. The processor routes the request through the card network to the issuing bank.
  4. The issuing bank checks funds and fraud signals, then approves or declines.
  5. The response travels back to your store, usually within seconds.
  6. If approved, the order is created. The funds are settled to your merchant account and later paid out to your bank account.

There are two stages worth knowing: authorization (the bank agrees to the charge and reserves the money) and capture (you actually collect it). Many stores capture immediately. Some, especially those that make products to order, authorize at checkout and capture when they ship.

Types of gateway integrations

Hosted payment pages

The customer is redirected to the provider's page to pay, then sent back to your store. This is simple and keeps card data entirely off your site, which reduces your security and compliance burden. The trade-off is a slightly less seamless experience.

Embedded or on-site fields

The payment form appears on your checkout page, but the card fields are actually loaded from the provider (often in a secure frame). Card data goes straight to the provider without touching your server. This offers a smooth experience while keeping compliance manageable, and it is the most common modern approach.

Direct API integration

Your server collects card data and sends it to the gateway. This gives full control but puts much more security and compliance responsibility on you. Most small stores should avoid it.

Understanding the fees

Payment fees vary by provider, card type, country and how the payment is taken. Common fee types include:

  • Per-transaction fees: often a percentage of the sale plus a small fixed amount
  • International or currency conversion fees for foreign cards or multi-currency sales
  • Chargeback fees when a customer disputes a charge with their bank
  • Monthly or setup fees with some traditional merchant accounts
  • Payout or instant transfer fees for faster access to funds

Always read the provider's current pricing page. A low headline rate can hide extra charges, and a flat-rate provider may be simpler to budget for even if it is not the cheapest at very high volumes.

How to choose a payment gateway

Consider these factors:

  • Platform compatibility: Does it have a well-maintained extension for WooCommerce or your platform?
  • Payment methods: Cards, Apple Pay, Google Pay, PayPal, buy now pay later, bank transfers?
  • Countries and currencies: Can it accept payments from where your customers are and pay out to your bank?
  • Fees: Transparent pricing that fits your average order value
  • Payout speed: How quickly funds reach your bank account
  • Fraud tools: Built-in fraud screening and 3D Secure support
  • Dispute handling: A clear process for managing chargebacks
  • Business restrictions: Some providers do not support certain industries; check their acceptable use policy before you build around them

Many stores offer more than one option, such as a card processor plus PayPal, to cover customer preferences.

Reducing failed payments and fraud

  • Enable address verification (AVS) and CVV checks to catch mismatched details
  • Support 3D Secure, which adds an extra verification step when the bank requests it
  • Watch for warning signs like multiple failed attempts, mismatched billing and shipping countries, or unusually large first orders
  • Communicate clearly with customers when payments fail so they can try another method

Protecting card data

The safest approach for a small store is simple: never store card numbers on your own server. Use a gateway that handles card data through hosted pages or secure embedded fields. This dramatically reduces your exposure and simplifies PCI compliance. Your payment provider can tell you which PCI self-assessment questionnaire applies to your setup.

Testing before you go live

Every reputable gateway offers a test or sandbox mode with test card numbers. Before launching, test:

  • A successful payment
  • A declined card
  • A refund from your store dashboard
  • A payment requiring 3D Secure verification

Then switch to live mode and place one small real order to confirm money flows end to end.

Wrapping up

A payment gateway is the bridge between your checkout and the banking system. Understanding the roles of gateways, processors and merchant accounts makes fees and features much easier to compare. Choose a provider that integrates cleanly with your platform, supports the payment methods your customers prefer, keeps card data off your server and is transparent about pricing. Then test thoroughly, and your checkout will be one less thing to worry about.