Homeglossary

Payment Gateway

A payment gateway is a technology service that securely captures payment details and sends them to the payment processor or acquiring bank for authorization. It returns an approval or decline to the checkout experience, but it does not itself move funds between accounts. Gateways can support online, mobile, invoice, and in-person payment journeys, with capabilities that vary by provider and country.

What Is a Payment Gateway?

A payment gateway is a technology service that securely collects payment details and sends them to a payment processor or acquiring bank for authorization. It returns an approval or decline to checkout, but does not move money between accounts.

It is the secure communications layer at checkout. It works on websites, mobile apps, payment links, invoices, card terminals, and donation forms. The gateway protects sensitive information while passing it to institutions that decide whether a transaction can proceed. Approval means the issuer authorized the payment. Settlement, the actual transfer of funds, usually happens later.

How a Payment Gateway Works

A card or wallet payment may look instant, but several parties exchange messages in seconds.

  1. The customer enters card details, selects a digital wallet, or taps a contactless card.
  2. The gateway collects and protects payment data. It may replace card details with a token so the business does not store the card number.
  3. The gateway sends an authorization request to the payment processor and acquiring bank, which represents the business in the card-payment system.
  4. The request travels through the relevant card network to the issuing bank, which issued the customer’s card.
  5. The issuing bank checks funds, card status, fraud signals, and required customer authentication, then approves or declines the payment.
  6. The gateway returns the result to the website, app, terminal, or payment link so the business can confirm the order or request another method.
  7. After authorization, the business captures the payment. The processor submits it for clearing and settlement, when funds are routed to the merchant account or designated bank account.

Bank transfers, account-to-account payments, and local methods use different networks and timing. Still, the gateway generally collects payment instructions securely and returns a usable result.

Payment Gateway vs. Payment Processor vs. Merchant Account

These terms describe distinct roles, although one provider may bundle them into one service.

ComponentMain rolePoint in the transactionRelationship to the business
Payment gatewayCollects, protects, and transmits payment informationAt checkout and when returning the resultProvides the checkout connection and payment tools
Payment processorRoutes payment messages and manages processing operationsDuring authorization, capture, clearing, and settlementMay be bundled with the gateway or used separately
Merchant account or acquirerEnables a business to accept card payments and receive proceedsReceives settled funds after processingMay be a bank, acquiring institution, or payment provider
Card networkProvides the network rules and message route between acquirer and issuerBetween the acquiring and issuing sidesNot usually contracted directly by a small business
Issuing bankApproves or declines based on the customer accountAt authorization and later settlementServes the cardholder, not the merchant

Core Payment Gateway Features and Security Controls

Many gateways offer hosted checkout pages, embedded payment fields, application programming interfaces, payment links, refunds, recurring billing, reporting, and webhooks. A webhook is an automatic message sent to a business system after a payment, refund, or dispute.

Security controls matter as much as convenience. TLS encrypts information while it travels between systems. Tokenization replaces stored card details with a substitute value that is not useful on its own if exposed. Fraud screening can assess device data, address checks, transaction patterns, and velocity, or repeated attempts in a short period. Customer authentication may ask the buyer to confirm a transaction through their bank.

Payment Card Industry Data Security Standard, or PCI DSS, obligations still apply. Hosted checkout can reduce the card data a business handles, but does not remove every responsibility. Businesses should protect account access and confirm which security tasks belong to the provider.

Payment Methods and Gateway Types

The right gateway depends on checkout design and the methods customers expect in each market.

Gateway typeHow it worksBest fitTrade-off
Hosted or redirectThe customer is sent to a provider-hosted payment pageBusinesses seeking a simpler security setupLess control over the checkout appearance
Embedded or direct APIPayment fields appear within the business website or appCustom checkout experiencesMore development and compliance work
Platform-integratedThe gateway is built into an ecommerce, booking, or point-of-sale platformFast setup within one platformPotential limits on providers, features, or portability

Supported methods may include cards, digital wallets, bank transfers, account-to-account options, local methods, and buy now, pay later services. Availability depends on country, currency, merchant category, business location, and provider rules.

Common Uses of Payment Gateways

A gateway supports more than a standard online shopping cart.

  • Ecommerce stores accepting one-time card and wallet payments.
  • Mobile apps that need secure in-app checkout.
  • Subscriptions and memberships using stored payment tokens.
  • Invoices and payment links sent by email, text message, or customer portal.
  • Nonprofit donations, event registrations, reservations, and appointment deposits.
  • In-person point-of-sale systems that accept chip, tap, or swipe payments.
  • Marketplaces that collect from customers and pay sellers. These need marketplace or split-payment features because ordinary checkout does not manage multi-party payouts.

Benefits of Using a Payment Gateway

A well-configured gateway can improve buyer experience and daily operations.

  • It gives customers a secure, familiar way to pay at any time.
  • It can offer several payment methods, including preferred options.
  • It automates authorization results, receipts, refunds, and payment-status updates.
  • It supports repeat purchases and subscriptions without retaining raw card numbers.
  • It can consolidate transaction reports and simplify reconciliation with orders and deposits.
  • It often connects with ecommerce platforms, accounting systems, mobile apps, and point-of-sale tools.
  • It can support international checkout through local currencies, languages, and regional payment methods where available.

Practical Limits and Common Payment Gateway Pitfalls

A gateway reduces complexity, but cannot eliminate payment risk or operational work.

  • Costs can include transaction fees, currency conversion, cross-border costs, monthly fees, and added services.
  • Overly aggressive fraud rules can create false declines and turn away legitimate customers.
  • Authorized payments can later be refunded, disputed, reversed, or fail to settle in unusual circumstances.
  • Chargebacks require evidence, timely responses, and delivery or service-use records.
  • Weak integration can cause duplicate charges, missing order confirmations, or incorrectly marked payments.
  • Businesses must plan for outages and handle webhooks safely, since a delayed notification is not proof that payment failed.
  • Provider-specific APIs and tokens can make changing providers harder, especially for recurring billing.

How to Choose a Payment Gateway

Choose based on the payment journey, not only the headline transaction rate.

  • Confirm supported payment methods, countries, currencies, and merchant categories.
  • Compare full pricing, including refunds, disputes, international payments, and conversion costs.
  • Check compatibility with the website, mobile app, ecommerce platform, and processor.
  • Review checkout speed, accessibility, localization, and whether hosted or embedded payment fits best.
  • Assess fraud and customer-authentication tools, and make sure they can be adjusted as fraud patterns change.
  • Understand the PCI DSS scope and the provider’s security documentation.
  • Inspect reporting, reconciliation exports, refund tools, dispute workflows, uptime support, and developer documentation.
  • Ask how payment data, tokens, and recurring customers can be moved if the business changes providers.
  • Before launch, test successful, declined, abandoned, refunded, and webhook-failure scenarios. The order system must handle every outcome correctly.

A Practical Example: An Online Store Payment

A shopper buys shoes online and selects a digital wallet. The gateway opens the wallet approval flow, receives confirmation, tokenizes the payment reference, and sends an authorization request through the processor. The issuing bank approves it, and the gateway tells the store to display an order confirmation. The store captures the payment, while settlement follows later under the provider’s schedule.

If the shopper chooses a local account-to-account method, the store may use a different flow and receive confirmation through a webhook. Businesses building checkout should understand the wider payment integration options available to their product and, where relevant, how UPI payment flows differ from card authorization. The central lesson is simple: the gateway makes payment communication secure and usable, while financial institutions authorize and settle the money movement.

Start Building
on Emergent today
Start Building