A payment gateway is the technology that securely captures your credit or debit card details at an online checkout and routes them to the bank that issued your card for approval. Think of it as the online equivalent of the card reader at a store counter: it encrypts the information, passes it through the right financial network, and returns an approval or decline, usually in under three seconds. Every card purchase you make on the internet moves through a payment gateway of some kind.
How a Transaction Moves Through the Gateway
The process starts the moment you click “pay.” Your browser encrypts the transaction details and sends them to the gateway, which identifies the bank that issued your card and forwards the data through a secure processor for verification.
The issuing bank checks your account for sufficient funds and runs a fraud analysis. One common check is the Address Verification System, which compares the billing address you entered against the address the bank has on file for your card.1Visa Acceptance Support Center. Payments – AVS (Address Verification System) Results The bank sends back either an authorization code or a decline, which travels back through the processor to the gateway and onto the merchant’s site.
If approved, the merchant completes your order and the gateway queues the funds for settlement, the step where money actually moves from your bank to the merchant’s account. Settlement typically happens in one to three business days, depending on the gateway and the merchant’s bank.
Hosted vs. Integrated Gateways
Payment gateways come in two main shapes, and the difference is visible to shoppers.
A hosted gateway redirects you to a separate payment page run by the gateway provider. PayPal Checkout is a well-known example. Because the provider handles all the card data on its own page, the merchant carries a lighter security load.
An integrated gateway, built through an API, keeps you on the merchant’s own website the whole way through checkout. Stripe is a leading example. The merchant gets full control over how the payment experience looks and feels, but takes on more responsibility for handling card data securely and may need to go through PCI compliance audits.
For a shopper, a hosted gateway means briefly leaving the store’s site, while an integrated one feels seamless. For a merchant, the choice affects both branding and security obligations.
How Gateways Keep Card Data Safe
Encryption and Tokenization
Transport Layer Security (TLS) is the encryption protocol that protects the connection between your browser and the gateway server. It stops anyone from intercepting card numbers or security codes while they travel across the internet. The padlock icon in your browser’s address bar signals that TLS is in use; merchants need an SSL/TLS certificate installed on their site for it to work.
Tokenization adds another layer. Instead of storing your actual card number, the gateway replaces it with a random string of characters called a token, keeping the real card data in a secure vault maintained by the gateway provider. When the merchant later needs to process a charge, such as a subscription renewal, they send the token rather than your card number. The merchant’s own systems never hold sensitive card data, which sharply reduces the risk of a breach.
PCI DSS Compliance
Any business that stores, processes, or transmits card data must follow the Payment Card Industry Data Security Standard (PCI DSS).2PCI Security Standards Council. PCI Security Standards Overview These rules govern how payment information is handled at every stage, from the moment a customer enters a card number through final storage or deletion. Card networks enforce compliance, and merchants that fall short can face monthly penalties until they meet the standard. Using a hosted gateway or tokenization can meaningfully reduce a merchant’s PCI burden because the gateway provider handles the most sensitive data.
3D Secure Authentication
3D Secure, often branded as “Verified by Visa” or “Mastercard Identity Check,” is an extra verification step that sometimes appears at checkout. After you enter your card details, the gateway contacts your issuing bank, which may prompt you to confirm the purchase with a one-time code, a banking app notification, or biometric authentication. The step helps prevent unauthorized use of stolen card numbers. For merchants, a successfully authenticated 3D Secure transaction can shift chargeback liability from the merchant to the issuing bank.
What Gateways Cost
Gateway fees come out of every sale, so the pricing structure matters. The two most common models are flat-rate and interchange-plus.
Flat-Rate Pricing
With flat-rate pricing, you pay the same percentage and fixed fee on every transaction regardless of card type. Costs are predictable and easy to forecast. Stripe charges 2.9% plus 30 cents per successful online card transaction,3Stripe. Pricing and Fees Square charges 2.6% plus 15 cents for in-person payments and 3.3% plus 30 cents for online payments at its base tier,4Square. Understanding Our Fees and PayPal Checkout charges 3.49% plus 49 cents per domestic transaction.5PayPal. Fees – Merchant and Business Flat-rate plans tend to work best for smaller businesses with lower volumes.
Interchange-Plus Pricing
Interchange-plus breaks the cost into three components: the interchange fee paid to the bank that issued the card, the card network fee paid to Visa or Mastercard, and a markup charged by your payment processor. Each component may be a small percentage, a flat per-transaction fee, or both. It is more transparent than flat-rate pricing because you can see where the money goes, and it often works out cheaper for businesses with high transaction volumes.
International Transactions
Selling across borders adds cost. Card networks charge a cross-border fee, typically 0.5% to 1%, when a card from one country is used with a merchant in another. The processor may add its own cross-border fee of 1% to 2%. Stripe, for example, adds 1.5% for international cards and another 1% if currency conversion is needed.3Stripe. Pricing and Fees
Common Examples
A few names dominate the market, and each takes a different approach.
Stripe
Stripe is an integrated gateway built for developers who want full control over checkout. Customers stay on the merchant’s site the whole time, which minimizes friction and keeps branding consistent. Stripe charges 2.9% plus 30 cents per successful domestic card transaction, with an additional 0.5% for manually entered cards.3Stripe. Pricing and Fees It is a popular choice for high-volume online businesses and software platforms that need deep customization.
PayPal Checkout
PayPal Checkout is a hosted gateway that usually redirects customers to a PayPal-branded page to pay. The model leans on PayPal’s established brand recognition, which can lift trust and conversion for smaller retailers whose own brand is less familiar. After payment, customers return to the merchant’s site for order confirmation. PayPal charges 3.49% plus 49 cents per domestic checkout transaction.5PayPal. Fees – Merchant and Business
Square
Square connects physical and online sales by offering both a card reader for in-person transactions and an online checkout gateway, managed through a single dashboard. In-person payments start at 2.6% plus 15 cents, while online payments start at 3.3% plus 30 cents, with lower rates available at higher volume tiers.4Square. Understanding Our Fees Many small businesses pick Square for its simplicity and the ability to manage inventory and payments across channels in one place.