Payment Gateway

A payment gateway protects, formats, and transmits payment requests and responses between merchant checkout systems and payment-processing services.

A payment gateway is a technology service that protects, formats, and transmits payment requests and responses between a merchant’s checkout and payment-processing services. It commonly handles card and wallet transactions for websites and apps, and it can also connect in-person or omnichannel payment systems.

A gateway does not necessarily hold the merchant account, issue the card, make the issuer’s credit decision, or settle funds. Providers often bundle gateway, processor, acquiring, fraud, tokenization, and reporting services, so the contract and transaction records determine the actual roles.

Key Takeaways

  • The gateway is the merchant-facing transaction interface, not the entire payment network.
  • It can collect or receive payment data, tokenize it, route requests, return responses, and send later status notifications.
  • Authorization, capture, clearing, settlement, refund, and chargeback are different lifecycle events.
  • A gateway response or webhook must be authenticated, linked to the correct order, and processed safely more than once.
  • Outsourcing payment collection can reduce direct data exposure but does not remove all merchant security and compliance duties.

Common Gateway Integration Models

ModelCustomer interactionMerchant exposure and control
Hosted payment pageCustomer is redirected to a provider-hosted pageProvider handles the payment page; merchant still protects redirects, account access, and order logic
Hosted fields or iframeProvider-controlled payment fields appear within merchant checkoutMerchant controls surrounding page while sensitive fields can originate from the provider
Direct API integrationMerchant application sends transaction data to gateway APIsGreater checkout control can create broader data, software, and security scope
Payment link or invoiceCustomer opens a provider-hosted checkout from a linkUseful for remote collection; link integrity and order matching still matter
Omnichannel gatewayOne service connects store, app, web, or call-center channelsCentral reporting can help reconciliation but creates provider and integration concentration

The exact PCI DSS scope depends on the complete implementation. A merchant should not infer scope reduction from a product label alone.

What a Gateway Does

Depending on the service, a gateway may:

  • create a secure payment session;
  • collect or receive card, wallet, bank-payment, or token data;
  • encrypt, tokenize, or otherwise protect payment information;
  • add merchant, order, currency, device, and risk fields;
  • route an authorization, capture, void, refund, or verification request;
  • translate among merchant, processor, acquirer, or payment-method formats;
  • return synchronous status and later asynchronous updates;
  • screen transactions using configurable fraud controls; and
  • provide transaction search, reporting, and reconciliation exports.

Not every gateway performs every function. For example, tokenization may be provided by the gateway, processor, network, wallet, or another service.

Authorization Is Not Settlement

Gateway statusWhat it generally meansWhat it does not prove
Created or pendingA transaction object or request existsThat the issuer received or approved it
AuthorizedAn approval was returned under the transaction rulesThat the merchant captured or received funds
Captured or submittedThe merchant requested completion or batch submissionThat clearing and settlement are final
Settled or fundedThe provider reports a settlement or merchant-funding eventThat no refund, reserve, dispute, or chargeback can follow
Voided or reversedAn authorization or unsettled transaction was canceledThat every temporary account hold disappeared immediately
RefundedA merchant refund was initiated or completed at a stated stageThat the customer’s account already shows the credit

Status vocabulary differs by provider. Integrations should map each provider state to the merchant’s order, accounting, and fulfillment states explicitly.

Worked Example: Checkout Timeout

An online customer submits a $95 order. The merchant’s browser times out before displaying confirmation, but the gateway has already sent the authorization request and later sends an approved status notification.

If the customer submits again, the merchant can create a duplicate authorization unless the integration uses a stable order reference or idempotency control. A reliable workflow should:

  1. create one merchant order identifier before payment submission;
  2. attach that identifier to the gateway request;
  3. authenticate the gateway’s later notification;
  4. retrieve current status from the gateway when the browser result is uncertain;
  5. fulfill only after the merchant’s required payment state is reached; and
  6. reconcile any duplicate, reversal, capture, refund, or failed notification.

The browser page is not the authoritative payment record. Merchant and gateway server records should determine the outcome.

Gateway vs. Processor vs. Acquirer

PartyPrimary roleCan the roles overlap?
GatewayMerchant integration, data protection, routing, and response handlingYes, a provider may also process or acquire
ProcessorProcesses or routes transactions for merchants, acquirers, issuers, or other partiesYes, a processor may offer a gateway
AcquirerContracts to provide merchant acceptance and settlement under payment-brand rulesYes, an acquirer may operate processing and gateway services
IssuerProvides the card or account and makes authorization decisionsIn some payment models one institution performs several roles
Payment networkSupplies rules and routing infrastructure among participantsNetwork structure varies by payment method

How to Evaluate a Gateway

  • Identify supported payment methods, currencies, countries, channels, and transaction types.
  • Map gateway, processor, acquirer, network, issuer, token, fraud, and settlement responsibilities.
  • Review hosted-page, iframe, JavaScript, API, mobile, and webhook security boundaries.
  • Require authenticated API calls and status notifications and protect merchant credentials.
  • Use stable order and transaction identifiers with duplicate-prevention controls.
  • Test authorization, decline, timeout, capture, partial capture, void, refund, dispute, and outage paths.
  • Reconcile gateway records to orders, processor batches, merchant funding, fees, refunds, and the ledger.
  • Review data retention, logs, exports, portability, incident notification, and service termination.
  • Measure availability and recovery, but also test whether status remains correct after retries and delayed events.

Risks and Common Mistakes

  • Treating the checkout success page as proof of payment.
  • Trusting an unauthenticated webhook or accepting the amount supplied by a customer’s browser.
  • Retrying a request without a stable idempotency or duplicate-control design.
  • Shipping on authorization when the merchant’s policy requires capture or another status.
  • Storing sensitive authentication data or full account numbers unnecessarily.
  • Assuming tokenization removes every system from security scope.
  • Ignoring gateway fees, currency conversion, reserves, dispute tools, and data-export costs.
  • Depending on one provider without tested outage and migration procedures.

Official Resources

Gateway features and legal responsibilities vary by provider, payment method, contract, payment brand, and jurisdiction.

FAQs

Is a payment gateway the same as a payment processor?

No, although one provider may perform both roles. The gateway typically provides the merchant integration and transaction interface, while the processor handles or routes payment transactions for participants.

Does a gateway approval mean the merchant has been paid?

No. Approval is an authorization-stage result. Capture, clearing, settlement, merchant funding, refunds, and disputes are separate events.

Does using a hosted gateway remove PCI DSS responsibility?

Not necessarily. It may reduce the systems that directly handle card data, but the merchant still needs to assess its checkout, account access, redirects, integrations, service providers, and applicable validation requirements.
  • Payment Processor: Service provider that processes or routes payment transactions.
  • Acquiring Bank: Entity providing merchant card acceptance and settlement.
  • Card Authorization: Issuer approval or decline before capture and settlement.
  • Digital Wallet: Wallet systems commonly present tokenized payment credentials in gateway transactions.
  • Credit Card Processing: Full card-payment lifecycle around gateway requests.
  • PCI DSS: Payment-card security standard for covered environments.

Educational Use

This article provides general financial education. It is not gateway-selection, payment-security, merchant, legal, or compliance advice.

Browse Financial Technology