What Is a Payment Gateway?
Being a technological solution, a payment gateway acts as an intermediary for online payments, connecting customers and businesses to their banks and payment processors. A key feature of these gateways is the secure collection and transmission of payment data, protecting sensitive information at every stage. International payment gateways can also support currency conversion and other operations required for international payments.
There are two main approaches to implementing payment gateways:
-
Hosted Gateways. These redirect the customer from the merchant's website to a secure third-party checkout page to enter card details. This approach simplifies implementation and can reduce the merchant's PCI DSS scope and security burden. Once the transaction is complete, the customer returns to the merchant's website.
-
Integrated Gateways. Integrated payment gateways allow merchants to embed the payment experience directly into their website/app while sending payment data to the gateway through APIs. This approach ensures a seamless customer experience but requires stricter security measures. Integrated payment gateways rely on Application Programming Interfaces (APIs) and SDKs to transmit transaction data securely, allowing developers to customize the payment flow. This flexibility enables merchants to tailor checkout fields and offer various payment methods.
Why Does Your Business Need a Payment Gateway?
For businesses that accept online payments, payment gateway functionality is an important part of the payment infrastructure. The major reasons to understand what a payment gateway is and why this technology should be implemented are as follows:
-
Data Protection. Payment gateways can use security measures such as encryption and tokenization to protect sensitive data and reduce the risk of exposure
-
Fraud Prevention. It uses tools such as real-time risk scoring and velocity checks to detect suspicious activity, and supports 3D Secure 2 (3DS2) cardholder authentication, which helps meet SCA requirements and can shift fraud liability to the issuer.
-
Regulatory Compliance. Payment gateways and payment service providers may be subject to PCI DSS requirements depending on their role and services. Merchants should also meet the PCI DSS requirements applicable to their payment environment.
-
Customer Trust. A secure payment process can increase customer confidence and help reduce some payment-related risks, boosting customer trust.
Overall, the value of a payment gateway lies in its ability to:
-
accept online payments
-
support various payment methods
-
ensure secure transaction processing
-
reduce friction
-
scale payment operations
How Does a Payment Gateway Work?
So, what is a payment gateway and how does it work? The gateway processes a transaction through several stages, from the customer entering their data to confirmation and subsequent settlement:
-
The Customer Starts the Payment. First, the buyer selects a payment method and enters their payment details (directly on the merchant's site or via a redirected checkout page), which are then transmitted to the payment gateway.
-
Payment Data Is Encrypted and Checked. The payment gateway protects payment data through encryption and tokenization and performs initial checks, including data validation and security checks, before it transmits payment data to the relevant payment processing infrastructure, such as a processor or acquirer.
-
The Acquirer Routes the Payment Information. In the next stage, the payment request is routed through the relevant payment processor, acquirer, and card network to the issuing bank.
-
The Issuer Approves or Declines the Payment. The card issuer checks fund availability, card status, restrictions, and potential signs of suspicious activity, and then approves or declines the transaction.
-
The Merchant Receives the Payment Status. The gateway returns the transaction result to the merchant, who uses it to display the payment outcome to the customer and update the payment status.
-
The Payment Funds Are Settled. Once the authorized payment is captured, the transaction goes through clearing and settlement. Funds are transferred through the acquiring infrastructure and credited to the merchant according to the provider's settlement schedule and agreement.
What Are the Key Benefits of Using a Payment Gateway?
The main benefits of payment gateways for businesses that accept payments online are:
Stronger Payment Security
Payment gateways employ a range of advanced security measures to protect sensitive data and detect payment fraud. These measures include encryption and fraud detection systems that protect merchants by identifying and blocking suspicious activity.
A Smoother Payment Experience
Using a suitable payment gateway ensures that the process of verifying customer data and authorizing payments is fast, seamless, and secure. This can improve the customer experience and reduce friction during checkout.
Reaching New Markets
In addition to boosting efficiency and driving growth, payment gateways often support various currencies and local payment methods, enabling online businesses to more easily enter new international markets.
Flexible Checkout Solutions
Payment gateways support tailoring the checkout process to specific business needs, allowing you to customize the interface, include various payment methods, and choose between ready-made solutions and more flexible API integrations.
What Is the Difference Between Payment Gateways and Payment Terminals?
Payment gateways and payment terminals can be used to process payments. However, they are designed for different operating environments and transaction methods:
|
Aspect |
Gateway |
Terminal |
|
Primary environment |
Online and digital payments |
In-person, brick-and-mortar payments |
|
Used in |
eCommerce platforms, apps, and other digital platforms |
Retail, restaurants, and other physical locations |
|
Transaction Type |
Digital transactions (card-not-present) |
In-person transactions (card-present: EMV chip, contactless, or magnetic stripe) |
|
How It Works |
Encrypts data, submits authorization requests and returns the results to the merchant |
Reads cards/contactless devices and sends transaction data for authorization |
|
Data Security |
PCI DSS compliance, TLS encryption, tokenization, fraud detection, AVS, CVV checks |
PCI DSS compliance, encrypted card data, EMV chip and contactless security |
|
Hardware |
Typically not required |
A physical POS or card terminal typically required |
|
Integration & Setup |
Integrated through APIs or plugins into websites or apps |
Installed as a physical device and connected to a POS system/network |
|
Typical Use Case |
Online checkout and digital payments |
In-store checkout and face-to-face transactions |
What to Consider When Choosing a Payment Gateway
-
Secure Payments and PCI Compliance. The security measures a gateway employs to protect payment data and how using the solution affects your own PCI DSS scope and responsibilities are key factors. When making a choice, businesses should consider encryption, tokenization, fraud detection, and other mechanisms that help mitigate the risk of unauthorized transactions and data breaches.
-
A Seamless Customer Payment Experience. Pay attention to the number of supported payment methods, checkout speed, the ability to securely store payment credentials or tokens, and the availability of local payment options, as it's better if your gateway ensures a simple and intuitive payment process across various devices.
-
Simple Payment Gateway Integration. Ease of integration with your existing infrastructure, availability of APIs, SDKs, ready-made plugins, and documentation, as well as clear development and support requirements—the simpler the integration process, the fewer resources you will need for launch and ongoing maintenance.
-
International Payments and Multi-Currency Support. If you accept payments from customers in different countries, the gateway must support the necessary currencies, payment methods, and regions. It's also important to verify capabilities regarding cross-border payments, currency conversion, and local acquiring.
-
Additional Payment Features. When selecting a payment gateway, pay closer attention to options that fit your current business model and future requirements. The most valuable additional features typically include recurring payments, subscriptions, refunds, chargeback management, fraud prevention, and reporting.
What Is a Merchant Account and How Does It Differ from a Business Bank Account?
In general, a merchant account is created for accepting and processing card payments, whereas a business bank account is used for standard banking operations and holding funds. To elaborate:
-
A merchant account is a specialized account or banking arrangement that enables a business to accept card payments through an acquiring institution. In a traditional setup, funds are credited to the merchant account during settlement before being paid out to the company's bank account. Such accounts are typically provided by an acquiring bank or a payment service provider.
-
A business bank account is used for a company's day-to-day financial operations, such as receiving funds, paying bills, issuing employee wages, and holding cash reserves. This type of account is used to receive settled funds and manage the company's broader operations rather than authorize card transactions.
The key difference between the two is that a merchant account is directly involved in processing card payments, while a business bank account is used to manage the business's funds. Following settlement, funds from the merchant account can be transferred to the company's bank account.
Which Payment Gateway Integrations Are Available and How Can You Add One to Your Website?
The method of integrating a payment gateway depends on your technical requirements and the level of control you need over the checkout process. To understand how to integrate a payment gateway, you first need to choose the appropriate integration model:
Hosted Payment Page with Pre-Built UI
With this approach, the customer is redirected to the payment provider's ready-made page, while the merchant typically creates a payment session or submits the required order details through an API or hosted checkout flow. Then, the customer is redirected to the provider's page. A hosted payment page with a pre-built UI requires minimal development and is suitable for businesses that do not need a fully customized checkout.
Server-to-Server Integration with Custom UI
This type of integration enables the creation of a custom payment interface and direct data exchange with the gateway via an API. Developers can configure the frontend and backend, send payment requests, and process gateway responses. Server-to-server integration with a custom UI is a good option when greater control over the checkout process is required, though it entails more complex development and attention to security requirements. Note: If raw cardholder data touches your server directly, your system falls under the most stringent PCI DSS compliance scope (SAQ D). Modern custom UI implementations typically use hosted fields, iFrames, or tokenization SDKs to keep sensitive card data off the merchant's servers.
Client-Side Encryption (CSE)
When selecting the CSE option, sensitive payment data is encrypted directly on the client side before being transmitted to the merchant's server. This can reduce exposure to plaintext data within the merchant's infrastructure while maintaining a custom user interface, although PCI DSS scope depends on the specific implementation.
eCommerce Platform Integration
Many eCommerce platforms can offer ready-made plugins or extensions. This allows merchants to install the necessary module, connect their payment provider account, and configure payment methods. This approach can reduce integration time and typically requires fewer technical resources than a custom integration.
Virtual Terminal
A virtual terminal is not a standard website integration but rather a useful tool for businesses that accept card-not-present payments. This approach allows an employee to manually enter payment details via a secure interface, for instance, when processing a phone order.
How Can You Switch to a New Payment Service Provider?
Switching payment service providers requires a phased migration:
-
Evaluate the current provider by analyzing payment gateway fees, reliability, support, functionality, and limitations.
-
Define payment methods, currencies, regions, security features, and integration requirements.
-
Select a new PSP by comparing suitable providers, then choose the solution that aligns with your business requirements.
-
Plan integration and migration. Prepare the technical integration, data transfer, and cutover plan in advance.
-
Test payment flows to verify authorization, capture, refunds, recurring payments, webhooks, and error handling.
-
Execute a controlled migration; this allows you to shift payment traffic gradually while maintaining a rollback plan where technically and contractually feasible.
-
Monitor transactions and reconciliation to identify and resolve issues promptly.
Frequently Asked Questions
What Does PCI Compliance Mean?
This refers to compliance with PCI DSS requirements. PCI DSS is a security standard that defines requirements for protecting payment account data and the systems and processes involved in payment card processing.
Does a Payment Gateway Keep Customer Card Details?
Many payment gateways use tokenization, so that merchants can use a token instead of storing the underlying card number. However, the storage method depends on the architecture and settings of the specific provider.
How Much Do Payment Gateway Fees Cost?
The cost depends on the provider, transaction type, region, payment methods, and payment volume. The fee may include transaction fees, monthly fees, setup fees, and additional costs.
How Long Does It Take for Funds to Settle?
Settlement typically takes anywhere from one to several business days following a successful transaction. Key factors here include the payment method, provider, market, merchant account, and contractual terms.