FundamentalsMarch 20, 20256 min read

How Payment Gateways Work: A Complete Guide

Whether you're a developer integrating payments for the first time or a business owner trying to understand where your money goes, this guide explains exactly how payment gateways work — from the moment a customer clicks "Pay Now" to when the funds land in your bank account.

What is a Payment Gateway?

A payment gateway is a technology service that authorises and processes online payments on behalf of merchants. Think of it as the digital equivalent of a physical point-of-sale terminal — it securely transmits payment data between the customer, the bank, and the merchant.

In India, payment gateways support UPI, credit cards, debit cards, net banking, and digital wallets. A free payment gateway like Node Gateway provides this infrastructure at no cost, making it accessible for startups, freelancers, and small businesses.

The 6 Steps of a Payment Transaction

Here's what happens in the 2–3 seconds between a customer clicking "Pay" and seeing a confirmation:

  1. 1
    Customer Initiates PaymentThe customer enters their payment details (UPI ID, card number, etc.) on the checkout page. The browser encrypts this data using SSL/TLS before it ever leaves their device.
  2. 2
    Gateway Receives & Encrypts DataThe payment gateway receives the encrypted data, tokenises the sensitive information (replacing real card numbers with tokens), and forwards it to the payment processor.
  3. 3
    Bank Authorization RequestThe processor sends an authorization request to the customer's bank (issuing bank). The bank checks for sufficient funds, fraud signals, and card validity.
  4. 4
    Approval or DeclineThe issuing bank responds with an approval code or a decline reason (insufficient funds, suspected fraud, etc.). This response travels back through the same chain.
  5. 5
    Gateway Returns ResultThe payment gateway passes the bank's response to your application. Your app displays 'Payment Successful' or 'Payment Failed' to the customer.
  6. 6
    SettlementApproved funds are batched and settled to your merchant account — typically within 1–3 business days. With UPI, real-time settlement is also possible.

UPI vs Card Payments: Key Differences

India's Unified Payments Interface (UPI) is unique — it bypasses traditional card networks (Visa, Mastercard) entirely. With UPI, funds transfer directly from the customer's bank to yours in real time, which is why UPI payment gateways can offer near-instant settlement with minimal fees.

Card payments go through additional intermediaries (card network, acquiring bank), which adds a small processing fee and a 1–3 day settlement period. Most free payment gateways in India support both methods.

What to Look for in a Free Payment Gateway

  • UPI, card, and net banking support in one integration
  • Developer-friendly REST APIs with clear documentation
  • Webhooks for real-time payment notifications
  • Payment links and QR codes for no-code payment collection
  • PCI-DSS compliance and end-to-end encryption
  • Real-time dashboard and transaction analytics
  • No setup fees, no monthly charges

Node Gateway: A Free Payment Gateway for India

Node Gateway is a free, developer-friendly payment gateway built with Node.js. It supports UPI, cards, net banking, and wallets — with payment links, QR codes, invoices, and webhooks included at no cost. Ideal for startups, freelancers, and developers who want to start accepting payments without upfront investment.

Ready to accept payments for free?

Set up your free payment gateway in minutes. No credit card required.

Create Free Account →