Guide

What Is a Payment Gateway? How It Works, With Examples

A payment gateway is the software layer that securely captures card details at checkout and passes the transaction to the processor for authorization. Here is how it works, how it differs from a processor, and common examples.

PCI L1Service Provider
Hostedcheckout + REST API
Shopify+ WooCommerce plugin
3DS2AVS + CVV
Quick answer

A payment gateway is the software layer that securely captures a customer's card details at checkout, encrypts them, and passes the transaction to the payment processor for authorization. It connects an online store to the wider card networks, returns an approve or decline in seconds, and protects the data in transit.

What is a payment gateway?

A payment gateway is the technology that connects a merchant's checkout to the payment processor and card networks. It captures card data, encrypts and tokenizes it, checks it for fraud, and transmits the authorization request. The gateway is the secure entry point, not the entity that moves the money between banks.

Think of the gateway as the front door of a card transaction. When a customer enters card details on a checkout page, the payment gateway encrypts that data, applies fraud screening, and sends an authorization request through the card network to the customer's issuing bank. Within seconds the gateway returns an approved or declined response to the storefront. For card-not-present commerce, the gateway is what lets a website, app, or Shopify store accept Visa, Mastercard, American Express, and Discover safely. It handles sensitive data through an encrypted API so raw card numbers never sit exposed on the merchant's own servers, which is central to PCI DSS compliance.

How a payment gateway works: 1. Checkout, Customer enters card details; 2. Gateway encrypts and sends, Authorization request to the processor; 3. Network and issuing bank, Card is checked and approved or declined; 4. Response returns, Approval or decline shown at checkout; 5. Clearing and settlement, Approved funds paid out to the merchant
Diagram: SwissPay.ai

How does a payment gateway work? The transaction flow

A payment gateway works by encrypting card data at checkout, sending an authorization request to the processor and card network, relaying the issuer's approve or decline back to the store, and then passing the approved transaction on for clearing and settlement. Authorization happens in seconds; settlement follows over the next days.

  1. 1
    Checkout capture

    The customer submits card details on the checkout page. The payment gateway immediately encrypts the data and can tokenize it, replacing the card number with a non-sensitive token.

  2. 2
    Authorization request

    The gateway forwards the request to the payment processor, which routes it through the relevant card network (Visa, Mastercard, Amex, Discover) to the customer's issuing bank (the issuer).

  3. 3
    Approve or decline

    The issuer checks funds, verifies the card, and can trigger 3-D Secure (3DS2) step-up authentication. It returns an approve or decline, which the gateway relays to the storefront in seconds.

  4. 4
    Capture and clearing

    The approved transaction is captured and sent by the processor to the merchant's acquirer (acquiring bank) for clearing through the network.

  5. 5
    Settlement

    The acquirer deposits the funds, minus fees, into the merchant's account over a period of business days. The gateway also applies fraud controls during this flow, including AVS, CVV checks, and real-time risk scoring, before an authorization is ever requested.

Payment gateway vs payment processor: what is the difference?

A payment gateway is the software that captures and secures card data at the point of checkout. A payment processor is the service that routes the authorization between the card networks and banks and moves the money. The gateway is the secure front door; the processor is the plumbing that settles funds.

Payment processorPayment gateway
Core roleRoutes authorization and moves the moneyCaptures and secures card data at checkout
Where it sitsBack end, between networks and banksFront end, at the checkout page
Handles card dataTransmits it to networks and issuerEncrypts and tokenizes it
Talks to the acquirerClears and settles through itPasses the request toward it
Fraud toolsNetwork-level checks and settlement riskAVS, CVV, 3-D Secure, risk scoring
Needed to accept cards onlineYes, alongside an acquirerYes

What are examples of payment gateways?

Common payment gateway examples include Stripe, PayPal, Authorize.Net, Braintree, Square, and Checkout.com, plus Shopify Payments for Shopify merchants. Some are gateway-only, while others bundle the gateway, processor, and acquiring together. High-risk verticals often need a specialist gateway when these mainstream options decline or close the account.

GatewayTypical modelNotes
StripeGateway plus processing bundledPowers Shopify Payments; restricts many high-risk verticals
PayPalGateway, processor, and walletWidely accepted; can freeze or limit accounts
Authorize.NetGateway-focusedPairs with a separate merchant account and acquirer
BraintreeGateway plus processing (PayPal-owned)Developer-focused API
SquareGateway, processor, and hardwareAimed at retail and small business
Shopify PaymentsBuilt-in Stripe-powered gatewayDefault on Shopify; limited for high-risk categories

How do you choose a payment gateway?

Choose a payment gateway by matching it to your business risk profile, checking supported currencies and countries, confirming PCI DSS compliance and tokenization, reviewing pricing and settlement speed, and verifying it integrates with your platform. High-risk merchants should prioritize a gateway with acquirers that accept their vertical, plus built-in chargeback and fraud tooling.

Vertical acceptance

Confirm the underlying acquirer actually underwrites your category. This is the deciding factor for high-risk merchants, and where mainstream gateways fail.

Platform integration

Verify the gateway works with your stack, whether that is Shopify, WooCommerce, or a custom checkout, so you are not rebuilding your storefront.

Security and compliance

Require PCI DSS compliance, tokenization, encryption in transit and at rest, and 3-D Secure (3DS2) support.

Fraud, pricing and reliability

Look for AVS, CVV, real-time scoring, and chargeback prevention built in. Compare transaction fees, gateway fees, settlement speed, and confirm uptime and support responsiveness.

What does a payment gateway mean for subscription and Shopify merchants?

For subscription and Shopify merchants, the gateway is where approval is often lost: Shopify Payments and Stripe decline, freeze, or close accounts in verticals they do not want to support. A gateway that boards the merchant on established rails, with card vaulting plus fraud and chargeback tooling built in, keeps the store processing instead of shutting it down.

Merchants in categories such as nutraceuticals and supplements, health and wellness subscriptions, telehealth, crypto, and iGaming frequently find that mainstream gateways will not authorize their transactions, and Shopify Payments (which is Stripe-powered) inherits those same restrictions. When that happens, the merchant needs a gateway backed by a provider that underwrites the vertical on purpose rather than a generic one that blocks it.

SwissPay.ai is built for exactly this gap. SwissPay is a PayPal-managed payment facilitator, operated by MintAds Inc., that boards and underwrites US and Canadian merchants in-house on PayPal rails, so a merchant does not need their own PayPal account. Transactions are processed on PayPal, one of the most established payment networks on the internet, and SwissPay pairs the gateway with card and PayPal-wallet vaulting for subscriptions and rebills, a tokenized card vault within its PCI DSS Level 1 environment, real-time fraud scoring using address (AVS), device and risk signals, 3-D Secure 2 where required, and chargeback plus PayPal dispute handling with automated evidence submission. It connects to a store through a Shopify plugin, a WooCommerce plugin, hosted checkout, or a REST API, with USD settlement to the merchant's own bank account. If Shopify Payments or Stripe has declined or closed you, a gateway that underwrites your vertical deliberately is the usual next step.

Declined by Shopify Payments or Stripe, or just want an alternative gateway?

See how SwissPay approaches high-risk merchant accounts and a Shopify high-risk gateway, boarded and underwritten in-house on PayPal rails with fraud and chargeback tooling built in.

Start my application

Related

Frequently asked questions

What is a payment gateway in simple terms?
A payment gateway is the software that securely takes a customer's card details at checkout and passes them to the payment processor for approval. It encrypts the data, connects your store to the card networks, and returns an approve or decline in seconds.
What is the difference between a payment gateway and a payment processor?
A payment gateway captures and secures card data at the checkout page. A payment processor routes the authorization between the card networks and banks and moves the money. Most merchants need both, and one provider often bundles them together.
What are examples of payment gateways?
Common examples include Stripe, PayPal, Authorize.Net, Braintree, Square, Checkout.com, and Shopify Payments. Some are gateway-only and pair with a separate merchant account, while others bundle the gateway, processing, and acquiring in one service.
Does Shopify need a separate payment gateway?
Shopify includes Shopify Payments, which is Stripe-powered, but merchants can also connect a third-party payment gateway. Businesses that Shopify Payments will not approve, such as many high-risk verticals, use a third-party gateway to accept cards on Shopify.
Is a payment gateway secure?
A payment gateway secures transactions by encrypting card data, tokenizing the card number, and supporting 3-D Secure authentication, all under PCI DSS compliance. Raw card numbers are not stored on the merchant's own servers, which reduces the risk of a data breach.
Which payment gateway is best for high-risk businesses?
The best gateway for a high-risk business is one connected to acquirers that underwrite the vertical on purpose, with fraud screening and chargeback tools built in. Mainstream gateways often decline these categories, so a specialist high-risk gateway is usually required.
Last reviewed: 14 October 2026

Apply for a merchant account

Tell us about your business. One application, boarded and underwritten in-house on PayPal rails, with card and PayPal-wallet processing built for subscriptions.

  • Boarded and underwritten in-house, no separate PayPal account needed
  • Card and PayPal-wallet vaulting for subscriptions, trials and rebills
  • PCI DSS Level 1, 3-D Secure 2 where required, and chargeback and dispute handling built in