Online payments have become an essential part of modern business. When customers purchase products from an online store, pay for subscriptions, or book services through a website, a payment gateway often helps securely transmit payment information and communicate whether a transaction is approved.
Although customers may see only a checkout page and a payment confirmation, several systems work together behind the scenes. Understanding payment gateways can help consumers make safer payment decisions and help business owners choose suitable payment solutions.
In this guide, we explain what a payment gateway is, how it works, how it differs from a payment processor, what fees businesses may encounter, and which security practices matter when accepting payments online.
What Is a Payment Gateway?
A payment gateway is a technology service that securely collects and transmits payment information between a customer, a merchant, and the relevant payment systems. It helps facilitate the authorisation of electronic transactions.
For example, imagine buying a pair of shoes from an online store. You enter your card details at checkout and click “Pay.” The payment gateway helps send the payment information securely into the payment process and returns the transaction response so the store can display an appropriate message.
A gateway may support different payment methods depending on the provider and merchant setup, including:
- Credit and debit cards.
- Digital wallets.
- Certain bank-based payment methods.
- Other locally supported electronic payment options.
A payment gateway does not necessarily hold the merchant’s funds or make the final approval decision itself. Banks, card networks, processors, and other payment participants may perform different parts of the transaction.
How Does a Payment Gateway Work?

A typical online card payment involves several steps. The exact process varies by provider and payment method, but the following example illustrates the general flow.
Step 1: The Customer Enters Payment Details
A customer selects a product or service, proceeds to checkout, and chooses a payment method.
The payment page may be hosted by the merchant or provided through a payment service. The design of the checkout experience depends on the merchant’s technical setup.
Step 2: The Gateway Transmits Payment Information Securely
The gateway helps transmit the payment data to the appropriate payment infrastructure. Security measures may include encryption, tokenisation, and other protections depending on the implementation.
Tokenisation replaces sensitive payment information with a substitute value, known as a token, that can be used for supported payment operations without repeatedly exposing the original card number.
These technologies reduce certain risks, but they do not remove the need for secure systems and responsible data handling.
Step 3: The Payment Is Routed for Authorisation
The transaction is routed through the relevant payment processor, acquiring bank, card network, or other participants, depending on the payment method and provider arrangement.
The customer’s card issuer or relevant financial institution evaluates the transaction. It may consider factors such as account status, available funds or credit, transaction limits, and fraud indicators.
Step 4: The Transaction Is Approved or Declined
The issuer or relevant payment system returns an authorisation response.
If approved, the merchant receives confirmation that the payment has been authorised. If declined, the merchant receives a response indicating that the payment could not proceed as requested.
An authorisation is not always the same as final settlement. The merchant may still need to complete subsequent processing steps.
Step 5: The Merchant Receives the Result
The gateway communicates the result to the merchant’s checkout system. The website can then show a success or failure message and update the order status.
For an approved purchase, the merchant usually prepares the order for fulfilment, subject to its normal checks.
Step 6: Clearing and Settlement Take Place
After authorisation, the transaction moves through the relevant clearing and settlement processes. Funds are transferred through the payment system and eventually paid to the merchant according to the provider’s settlement schedule, fees, reserves, and other applicable terms.
Settlement timing can vary. It should not be assumed that every approved transaction results in immediate access to the money.
Payment Gateway vs. Payment Processor
The terms “payment gateway” and “payment processor” are often used interchangeably, but they generally describe different functions.
| Feature | Payment Gateway | Payment Processor |
|---|---|---|
| Main role | Securely collects and transmits payment information | Handles transaction processing and communication among payment participants |
| Customer interaction | Often connects with the checkout experience | Usually operates behind the scenes |
| Authorisation | Helps route the request and communicate the response | Helps move transaction information through the payment infrastructure |
| Merchant funds | Does not necessarily hold or settle funds | May be part of a broader processing service, depending on the provider |
| How it is offered | May be a standalone service or part of a bundled solution | May be bundled with acquiring and other merchant services |
In practice, providers frequently combine gateway, processing, fraud prevention, reporting, and merchant account services into one package. Their exact responsibilities depend on the contract and technical arrangement.
When comparing providers, examine the services included rather than relying only on the labels used in marketing materials.
What Is the Difference Between a Payment Gateway and a Payment Service Provider?
A payment service provider (PSP) may offer a broader collection of services that help businesses accept and manage payments. These can include gateway technology, payment processing, merchant onboarding, fraud tools, reporting, and support for multiple payment methods.
A gateway is one component that may be included in a PSP’s overall service.
For a small online business, using a provider that bundles several payment functions can simplify setup. A larger business with specialised requirements may prefer a more flexible arrangement that integrates multiple providers.
The right choice depends on transaction volume, supported countries, customer payment preferences, technical resources, and costs.
What Fees Do Payment Gateways Charge?
Payment costs depend on the provider, country, payment method, transaction type, and business risk profile. A business should review the complete fee structure before choosing a service.
Common charges can include:
Transaction Fees
A provider may charge a percentage of each payment, a fixed fee per transaction, or a combination of both.
For example, if a provider charges 2.5% plus $0.30 per transaction, a $100 payment would incur a fee of $2.80, assuming that rate applies to the transaction.
The actual fees and currency treatment depend on the merchant agreement. This example is illustrative, not a quoted provider rate.
Monthly or Subscription Fees
Some services charge a recurring fee for access to particular features, integrations, support, or account services. Others may have no standard monthly subscription but charge more per transaction.
Businesses should compare expected total costs rather than focusing on one advertised price.
International and Currency Conversion Fees
A business accepting payments from other countries may face additional charges for cross-border transactions or currency conversion.
These fees can affect the amount a merchant ultimately receives. Businesses selling internationally should confirm which currencies are supported and how exchange rates and conversion charges are applied.
Chargeback and Dispute Fees
A chargeback can occur when a cardholder disputes a transaction through their financial institution. Providers may charge a dispute fee, and the merchant may need to supply evidence to contest the claim.
Chargebacks can also create operational costs and affect a merchant’s risk profile.
Refund-Related Costs
Refund policies differ by provider. A business should check whether the original processing fee is returned, whether separate refund fees apply, and how long refunds usually take.
How Should a Business Choose a Payment Gateway?
A suitable payment gateway should balance security, cost, reliability, customer convenience, and compatibility with the business.
1. Compare the Total Cost
Review transaction fees, monthly charges, international payment costs, currency conversion, chargebacks, refunds, and any setup or integration fees.
Estimate the total cost using your expected monthly transaction volume and average order value.
A provider with a lower advertised transaction rate may not be the cheapest option once all charges are included.
2. Check Supported Countries and Payment Methods
Confirm that the provider supports your business’s country, settlement bank account, business type, and intended customer markets.
Consider whether your customers prefer cards, digital wallets, bank transfers, or locally popular payment methods.
Offering suitable payment options can make checkout more convenient, but adding methods should be balanced against cost and complexity.
3. Review Security Features
Look for appropriate payment data protection, fraud monitoring, secure integrations, authentication support, and clear incident-response procedures.
For card payments, ask how the provider supports compliance with applicable payment security requirements. Using a provider does not automatically eliminate every security obligation a merchant may have.
4. Check Integration and Compatibility
The gateway should work with your website platform, shopping cart, invoicing software, or subscription system.
Review the quality of its documentation, available plugins, API capabilities, and technical support. A simple integration may be more valuable to a small business than an extensive feature set it does not need.
5. Assess Reliability and Support
Payment failures can result in lost sales and frustrated customers. Review service reliability information, incident communication, support availability, and how the provider helps troubleshoot failed transactions.
For businesses operating across time zones, support hours can be especially important.
6. Understand Payout Timing and Account Terms
Check when funds are typically paid out, whether reserves can be applied, what can trigger account reviews, and how the provider handles disputes or suspicious activity.
An approved payment does not always mean the money will be immediately available in the merchant’s bank account.
Payment Gateway Security: What Businesses and Customers Should Know

Security is a shared responsibility. Providers can offer protective technology, but merchants and customers also need sensible safeguards.
Use Secure Checkout Connections
Businesses should ensure that payment pages and their websites use properly configured HTTPS. They should keep website software, payment integrations, and relevant plugins updated.
Customers should be cautious if a checkout page behaves unexpectedly, displays browser security warnings, or requests information unrelated to the purchase.
Protect Sensitive Payment Data
Merchants should avoid storing sensitive payment information unless they have a legitimate need, suitable safeguards, and the required compliance arrangements.
Using a reputable provider’s hosted checkout or tokenisation features may reduce the amount of sensitive payment data a merchant handles directly.
Enable Appropriate Authentication
Depending on the payment method, country, and transaction, additional authentication may help verify that the person initiating a payment is authorised to do so.
Customers should never share one-time passwords, PINs, or account passwords with someone claiming to be a payment provider representative.
Monitor Suspicious Transactions
Merchants can use available fraud-screening tools, transaction alerts, and sensible review procedures to identify suspicious activity.
Customers should check account activity and report unauthorised transactions promptly to their bank or payment provider.
For additional guidance, read our article on how to spot AI-powered financial scams.
Common Payment Gateway Problems
Even a properly configured payment system can experience occasional problems. Understanding common causes helps businesses respond more effectively.
Payment Declined
A payment can be declined because of insufficient funds or credit, incorrect details, issuer restrictions, security checks, or technical problems.
Customers should follow the message shown at checkout and contact their bank or payment provider if necessary. Repeatedly submitting the same failed transaction may not resolve the underlying issue.
Payment Pending
Some payment methods require additional processing time. A pending status may indicate that the transaction has not reached its final outcome.
Businesses should verify the transaction status through their payment dashboard or approved integration before fulfilling an order or requesting that a customer pay again.
Duplicate Payment Concerns
Customers may worry about duplicate charges if a checkout page freezes or fails to display confirmation.
Businesses should check their transaction records before asking customers to retry. Customers should review their account activity and contact the merchant or financial institution if duplicate charges appear.
Technical Integration Errors
Outdated plugins, incorrect API settings, server issues, and incompatible software can disrupt checkout.
Businesses should test payment flows in a safe test environment when available, maintain backups, and review provider documentation before making major changes.
Fraud Alerts or Account Reviews
Providers may review transactions or restrict activity when they detect unusual patterns or need additional business information.
Merchants should maintain accurate account details, respond through official support channels, and keep the documents required by their provider up to date.
Are Payment Gateways Safe?
Payment gateways can make electronic payments safer by helping protect payment information and routing transactions through established payment systems. However, no payment method or technology is completely risk-free.
Safety depends on the provider’s controls, the merchant’s implementation, customer behaviour, and the broader payment process.
Before entering payment details, customers should verify that they are using the intended merchant’s genuine website or application. They should also review transaction notifications and contact their financial institution quickly if they identify unauthorised activity.
Businesses should select reputable providers, maintain secure integrations, monitor transactions, and understand their responsibilities under relevant laws and payment rules.
Frequently Asked Questions
Is a payment gateway a bank?
No. A payment gateway is a technology service that helps transmit payment information and communicate transaction results. Banks and other financial institutions may provide authorisation, acquiring, account, or settlement services.
Does a payment gateway transfer money directly?
Not necessarily. A gateway helps facilitate the payment process, while clearing and settlement are handled through the relevant payment infrastructure and service providers.
Can a small business use a payment gateway?
Yes. Many providers offer payment solutions for small businesses, freelancers, online stores, and service providers. Eligibility, fees, and available features vary.
Do payment gateways accept international payments?
Some support cross-border transactions and multiple currencies, but availability depends on the provider, the merchant’s country, supported payment methods, and account terms.
What happens if a payment gateway fails?
A failed gateway or integration may prevent a transaction from being submitted or confirmed. Merchants should check the payment status before retrying or fulfilling an order, while customers should avoid repeated payments until the status is clear.
Is a payment gateway required for every online payment?
No. Different payment methods use different technical arrangements. Some merchants use a gateway, while others accept payments through bank transfers, payment links, hosted checkout services, or other systems.
Final Thoughts
Payment gateways help connect online checkout experiences with the systems responsible for authorising and processing electronic payments. They are an important part of modern digital commerce, but they are only one component of the overall payment process.
For businesses, the best choice depends on total costs, supported payment methods, security, integration, customer support, and payout terms. For customers, safe payment habits include using genuine websites, protecting authentication details, and checking account activity.
Understanding how online payments work makes it easier to evaluate providers, troubleshoot common problems, and make informed decisions as digital commerce continues to evolve.
1 thought on “Payment Gateways Explained: How Online Payments Work”