Payment gateway explained: from definition to integration options

It is a comprehensive guide to payment gateways, offering a detailed explanation of what they are, how they work, the different ways to integrate them into your website or app, and much more. If you want to understand payment gateways better, look no further — all the answers are here.
Payment gateways were explicitly developed for e-commerce and those organisations that deal with online payments. They act as an intermediary, encrypting information that a cardholder enters during checkout, authorising the payment and transferring the details between the rest of the payment processing parties. Thus, if regular store retailers use POS terminals to accept card payments, the gateway fulfils this role in online transactions.
A payment gateway provides a way to process online transactions without directly handling sensitive customer data, such as credit card information. It passes the encrypted customer's payment details to the appropriate issuing bank or card processor for authorisation. Encryption protects this sensitive data from being intercepted electronically during the transfer between banks.
To authorise the customer's payment, the gateway must connect to the card issuer through an electronic network (like VisaNet or Mastercard SecureCode). The network sends back a response indicating whether the transaction should be approved or declined based on criteria specified by the card issuer's policy. If the transaction is approved, your customer can complete their purchase. The payment gateway then notifies the merchant of the transaction status.
To make the path each transaction passes clearer, let's look at it step-by-step and find out where the payment gateway steps in.
The main reason why a payment gateway is necessary is to ensure secure electronic payments for both the customer and the merchant.
An online payment gateway uses encryption and other security measures to protect customer payment information from being intercepted by third parties. It enables merchants to offer customers a range of payment options by securely transmitting payment information to the bank or payment processor.
The payment gateway can also perform additional functions, such as fraud screening, risk management, and reporting to help merchants mitigate fraud and avoid losses.
A payment gateway makes money by charging fees for transaction processing. In general, there are two kinds of fees:
Payment gateways may also charge additional fees for services such as chargeback management, fraud prevention, recurring billing, analytics, reporting, and integration with other online business systems.
Take a look at the fees that some popular payment gateway service providers charge as of February 2023.
Payment gateway service provider | Transaction fees |
---|---|
Stripe | 2.9% + $0.30 |
PayPal | 3.49% + $0.49 |
Braintree | 2.59% + $0.49 |
Square | 2.9% + $0.30 |
Authorize.net | 2.9% + $0.30 |
Payment gateways charge three main types of credit card processing fees: interchange fees, assessment fees, and processing fees. Let’s learn more about each one.
Interchange fees are also known as issuing bank fees. They consist of financial risk charges and fixed business costs, which apply to every card transaction and account for the largest share of all card processing costs.
Payment networks like Mastercard and Visa set interchange fees and revise them twice per year. They vary depending on numerous factors, including card network, card type (credit or debit), payment flow (online transaction, swiping the physical card at point-of-sale terminals, mobile payment), merchant category code (MCC), and others.
Assessment fees, also called dues and assessments or card association/network fees, are paid by payment processors to the card networks. These fees are calculated based on the total monthly transaction volume and range between 0.09% and 0.15%, with an additional percentage charged on international transactions.
Processing fees are what merchants pay their payment processors for using the software and their services. They’re often referred to as provider markup and typically are charged per transaction or once a month. They can be calculated as a percentage, fixed, or combined.
Payment gateways may have various charges, from setup and monthly fees to chargeback and PCI compliance fees.
The term ‘payment gateway’ has become somewhat of a buzzword in recent years. But frequently, people misuse the term, confusing it with other payment industry concepts.
We’ve created this table to clarify the picture and help you navigate the complex world of payment solutions and market actors.
Term | Definition |
---|---|
Payment service provider (PSP) | A financial institution that may provide businesses with a payment gateway, payment processing, and merchant account |
Payment gateway | Software that collects, verifies and transmits customers’ payment details |
Merchant account | A business account at an acquiring bank or a PSP where merchant’s funds are deposited for completed transactions |
Payment processor | A solution that powers connection between a merchant, credit card networks and banks to ensure that the merchant gets the funds from sales |
Payment aggregator | A payment service provider that signs up merchants under its own MID |
Payment facilitator (PayFac) | A payment service provider that provides merchants with their own MID under a master account |
Read on as we dive deeper into the differences between a payment gateway and a merchant account, payment service provider, payment processor, payment aggregator, and payment facilitator.
An online payment gateway and merchant account are the backbones of any e-commerce business. You'll need both if you want to accept and process online payments. While many merchants mistakenly believe they can choose one of the two for processing transactions, this isn't true.
A gateway is responsible for authorising, encrypting and transferring online payments, while a merchant account is where your funds will be deposited after the transaction is completed. After some time, after the payment is approved and fees are charged, the money will be redirected to your primary bank account.
To open a merchant account, you usually need to enter into an agreement with an acquirer. But most e-commerce merchants choose a more convenient option — contracting with companies offering all-in-one payment processing solutions.
These terms are often used interchangeably because the payment gateway and payment service provider are frequently the same company. However, these terms have different meanings.
A payment service provider (PSP) is a financial institution that links merchants with card networks and processors for payment card processing. A PSP provides a merchant account and payment gateway for collecting and managing payments.
Payment gateway or payment processor are two terms that are often confused with each other, and it's easy to see why. Many companies offer both payment gateway and payment processor functionalities, which can make it difficult to distinguish between the two.
To draw the line, a payment gateway is a tool that collects, verifies and transmits a customer's credit card information to the payment processor.
In turn, the payment processor is responsible for communicating between merchants, credit card networks and banks to ensure merchants receive money from their sales.
As with PSP, the key difference between a payment aggregator and a payment gateway is that the first is an institution, while the second is software.
A payment aggregator is a payment service provider allowing merchants to process payments without opening their own merchant account (MID). It works using one 'umbrella' MID that enables merchants to open sub-accounts underneath it to receive and make payments.
The term 'payment facilitator' is more similar to the term 'payment aggregator' we've just looked at. As we already know how an aggregator differs from a payment gateway, let's focus on the critical difference between an aggregator and a facilitator.
The facilitator is also a payment service provider that enables payment processing for merchants not having a separate merchant account. But unlike an aggregator that signs up merchants directly under its own MID, a facilitator provides merchants with their own MID under a master account.
When it comes to setting up a payment gateway for your business, you have a few options to choose from. These are third-party providers, in-house development, and white label payment gateways. Let’s learn more about each option.
One of the most common ways to set up a payment gateway for a website or app is to partner with a third-party solution provider. It is a popular option among businesses of all sizes because it is easy to set up and requires minimal technical knowledge while giving access to various payment processing capabilities and additional features.
However, businesses that work with third-party payment gateway providers have little control over the payment process, which can result in a lack of branding opportunities and lower revenue due to high transaction fees. Additionally, third-party providers may have specific restrictions on the types of businesses they work with and limitations for turnover sizes, chargeback rates, transaction quantity or amounts, etc.
For businesses with the technical expertise and resources, developing an in-house payment gateway can offer greater control over the payment process, more branding opportunities, and potentially lower transaction fees. Developing an in-house payment gateway involves creating a custom solution with the business's specific needs in mind.
To create a payment gateway from scratch, businesses must understand programming languages, security protocols, and regulations. They also must obtain a merchant account and comply with Payment Card Industry Data Security Standards (PCI DSS) requirements.
Despite the benefits of in-house development, it can be costly and time-consuming. Developing a minimum viable product (MVP) payment gateway can cost anywhere from $200k or more, and the time required can range from several months to a couple of years, depending on the complexity of the project, the size of the development team, and the features required.
A white label payment gateway is a compromise between using a third-party provider and developing the payment gateway in-house.
A white label payment gateway is also a third-party solution, but it is highly customisable to fit your brand, website design, and business model. This option offers businesses greater control over the payment process, more branding opportunities, and potentially lower costs. But unlike in-house-development, white label payment processing doesn’t require the technical expertise and resources from your side.
Corefy's white label payment gateway gets you online with a scalable technical infrastructure that we enhance and maintain for you.
Here are the most common reasons why clients choose us:
Now that we know about the three ways to get a payment gateway, let's explore the key characteristics a payment gateway should obtain to serve your business better. It will help you craft requirements for in-house development or can serve as a checklist to choose the third-party or white label solution. Of course, some of the points can be less relevant to your business model, but the information below is a good starting point to understand what to look at when choosing a universal payment gateway.
When customers reach checkout on your website, they want to see the online payment options they're used to. If they don't see one of those options, it may result in lost sales for you. That's why your success largely depends on the availability of payment methods on your website that your gateway should support. Besides supporting the top global card brands, look for popular mobile wallets like Apple Pay and Google Pay, as well as cryptocurrency options like Bitcoin or Ethereum.
Checkout, or payment page, is the most critical customer-facing element of the payment process, affecting clients' satisfaction and conversion rates. The most advanced solutions support personalisation features, allowing clients to see payment methods they will likely use or used last time on top of the list and pay instantly in one click.
The payment page should also be integrated into your website correctly to avoid basic UX errors like shutting down due to misclick. UX writing matters, too. The error messages should be clear enough for a customer to fix the issue, if possible.
When choosing a payment provider and gateway, selecting one compliant with security standards like PCI DSS, GDPR, and other regulations is vital. The service provider should also have all necessary hardware and software for fraud prevention, tokenisation, encryption, masking, data protection, etc. The company's status page can also be a good indicator of its reliability.
We'll take a closer look at payment gateway security measures in a dedicated section of this article.
Unfortunately, no technical system is 100% immune to failures and malfunctions. However, if your payment service provider ensures timely and competent support, such issues are resolved promptly and will not affect your customers' overall payment experience.
Besides, even if everything works properly, you may need help configuring something or getting particular data. That's why the availability of customer support through various channels is a must.
Naturally, integrating and configuring a payment gateway will come with a cost. Apart from this, the provider will also charge various fees for their services, such as transaction processing fees, chargeback fees, recurring monthly fees, currency conversion fees, etc. Check and estimate these expenses before signing a contract.
We now know the main things to consider when choosing the best payment gateway. Still, the essential requirements vary from industry to industry, so in this section, we highlighted the most critical payment gateway functionality for different sectors.
A payment gateway used by crypto businesses should be able to accept a variety of cryptocurrencies to enable customers to pay using their preferred digital currency. It should also be able to process transactions quickly to avoid delays in completing transactions.
A payment gateway for forex businesses should support a variety of currencies and methods to enable customers to make deposits and withdrawals the preferred way. Besides, it should be able to integrate with popular trading platforms.
The most important thing in a payment gateway for payment institutions is compliance with relevant regulatory requirements, KYC and AML regulations, and a high level of security. Such gateways should also be able to integrate with banking systems.
A payment gateway should offer customisable payment solutions to enable ISO/MSPs to tailor their services to meet the unique needs of their clients. Similarly to payment institutions, ISO/MSPs require their payment partners to be fully secure and compliant.
For e-commerce, the payment page and process should be intuitive and user-friendly. A payment gateway must offer e-commerce merchants a variety of payment options. The price gateway charges are also very important, as e-commerce merchants strive to optimise costs.
It is vital for gambling and betting to comply with the regulations in their jurisdictions, so the payment partner should facilitate it. Another major payment challenge for gambling and betting businesses is fraud. That’s why a payment gateway for these industries should have antifraud solutions in place.
High-risk businesses face chargebacks more frequently than low-risk ones, so their payment gateway needs to have chargeback management tools and policies in place. Many high-risks also operate using multiple merchant accounts at different vendors, so connecting all accounts to a single gateway would be convenient.
The SaaS industry relies heavily on recurring payments, making a SaaS payment gateway a vital component of any SaaS business. Such a payment gateway should be able to process recurring payments using tokenised payment details and integrate with popular subscription management software. Additionally, it should offer features such as automated invoicing, customised billing, and flexible pricing plans to enable SaaS businesses to tailor their services to meet the unique needs of their clients.
Such businesses need integrations with popular ticketing platforms to enable customers to purchase tickets easily. Besides, for some events, hundreds of tickets can be sold out within hours, so the payment gateway should ensure continuity of operations during peak times.
A gaming payment gateway should offer support for in-game purchases and donations, allowing gamers to make online payments of arbitrary amounts. Additionally, it should offer features such as customised checkout options, such as "Remember me" functionality and one-click payments, to offer a seamless payment experience for gamers. The gaming payment gateway should also provide chargeback management tools and policies to handle any chargeback-related issues that may arise, given that high-risk transactions are common in the gaming industry.
A payment gateway for the travel industry should be able to process various payment methods, including credit and debit cards, e-wallets, and bank transfers, to provide customers with the flexibility to pay using their preferred payment method. It should integrate with popular travel booking systems and provide features such as automated refunds and cancellations to offer a seamless booking experience for customers.
The payment gateways deal with sensitive customer information, such as credit card requisites and other payment details. That's why they are regulated and implement various security measures to protect customers and merchants from fraud, data theft, and losses. Below you'll find information about the measures that ensure secure payment processing.
Data encryption is a method of protecting sensitive data by transforming it into an unreadable code or ciphertext. Cardholder data is secured by using a combination of symmetric and asymmetric cryptographic algorithms. All data is managed using multiple encryption keys with split knowledge and dual control. Thus, thieves won't be able to make use of information stolen from the base without a unique key.
The Transport Layer Security (TLS) protocol ensures the safety of payment data during transfer, guaranteeing a secure connection between the server and the client's browser. TLS uses HTTPS, which eliminates data interception and protects against redirection to fraudulent resources.
Tokenisation replaces sensitive data with a token, a unique digital identifier used in different types of transactions. The token can later be used to retrieve the original data. Tokenisation enables merchants to securely pass customers' data to payment service providers without exposing it to hackers or cybercriminals.
3DS is a security protocol designed to ensure that the shopper using a card to pay for goods on the merchant's website is the actual cardholder. It is achieved by prompting the cardholder to pass 3D Secure authentication.
The 3D Secure payment gateway minimises card fraud risks for merchants since the issuing bank is responsible for the transactions performed with this type of verification. All the authentication data provided by the customers is stored on the payment server of the issuing bank.
The largest card networks have developed a PCI DSS standard that contains 12 clauses covering all aspects of payment data protection, including procedures for handling data breaches, encryption protocols, and logging access attempts. Compliance with the PCI DSS is not a one-time event but an ongoing process of tracking operations, testing security systems, maintaining information security policy, and passing annual audits. That's why it's an essential indicator that helps to select a secure payment gateway.
Masking is a simple security method that replaces the original data with other values, such as null, constant or synonymical to actual structured data. There are two types of masking: static data masking (SDM) and dynamic data masking (DDM). SDM is permanent and unretrievable, meaning that authorised users can access the original data while unauthorised users will see it masked. DDM is reversible, meaning that authorised users can access both masked and unmasked versions of the data. It is particularly useful for testing or quality assurance because it prevents sensitive data disclosure while preserving its analytical value. It also helps with secure data display, e.g. showing only the last four digits of a credit card number on screen rather than all 16 digits.
A payment gateway integration is the process of connecting a website or application to payment software for transaction processing. Common integration options include using plugins, APIs, and SDKs.
Plugins are pre-built software components that can be added to a website or an e-commerce platform like WordPress, Wix, or Shopify. Plugins make integrating a payment gateway with your website much easier, as you only need to install the plugin and configure the necessary settings.
The steps to integrate a payment gateway using plugins are generally the following:
Things worth knowing about payment gateway plugins:
An API (Application Programming Interface) is a set of protocols used for communication between software. Payment gateway integration via API requires a developer to write code that interacts with the payment gateway's API.
Here are the steps for integrating a payment gateway using API:
Things worth knowing about payment gateway APIs:
An SDK (Software Development Kit) is a set of development tools that enable developers to create applications for a specific software or platform. The integration using SDK involves incorporating the SDK provided by the payment gateway into the website or application. The SDK offers pre-built code libraries, making the payment gateway integration much more effortless than via API. The main pros are development and maintenance simplicity.
Here are the steps for integrating a payment gateway using SDK:
Things worth knowing about payment gateway SDKs:
Relying on a single payment gateway can be risky for any business. According to a study by AppDirect, nearly 75% of companies surveyed experienced at least one payment outage in a year, and over 30% of those experienced more than five outages during that same period. Downtimes can lead to financial losses and damage to a company's reputation. For a rapidly growing business, every minute of downtime can be costly.
To mitigate the risk of payment gateway crashes and downtimes, integrating multiple payment gateways is a solution to consider. However, this approach offers benefits beyond just ensuring operational continuity. By using multiple payment gateways, you can offer support for a range of payment methods and enable your customers to pay in their preferred currency. This approach makes your business more flexible and scalable, especially for merchants expanding globally.
In fact, according to a survey by PYMNTS.com, 60% of customers will abandon a purchase if their preferred payment method is not offered. Using multiple payment gateways, you can offer customers the payment options they want, increasing the likelihood of completing transactions and building customer loyalty.
Subscribe to our newsletter
We'll be sharing useful tips and guides to help you optimise your payment and payout processes.
Thank you for subscribing!