E-Commerce Technologies & Platforms

Online B.Com · Sem 5

Lesson 3 of 4E-Commerce

How Payment Gateways Work

E-Commerce Technologies & Platforms

About the video

What is Payment Gateway? How Payment Gateway works? | Payment Gateway Complete Flow | Hindi

AI Technical

Study notes

A payment gateway is a technology service that securely captures, encrypts and transmits a customer's payment details from a website or app to the banks for authorisation. A transaction passes through the merchant, the gateway, the payment processor, the card network, the issuing bank and back again, and then funds are settled to the merchant's acquiring bank.

What a Payment Gateway Is

  • It is the online equivalent of a card swipe (POS) machine.
  • It sits between the merchant's checkout and the banking network.
  • It supports cards, net banking, UPI, wallets and EMI options.
  • Examples: Razorpay, PayU, CCAvenue, Stripe, PayPal.

Key Parties

  • Customer (cardholder).
  • Merchant (the e-commerce site).
  • Payment gateway: captures and encrypts payment data.
  • Payment processor: routes the transaction.
  • Card network: Visa, Mastercard or RuPay.
  • Issuing bank: the customer's bank, which approves or declines the payment.
  • Acquiring bank: the merchant's bank, which receives the funds.

Transaction Flow

  • 1. The customer enters payment details at checkout.
  • 2. The gateway encrypts the data and sends it to the processor or acquirer.
  • 3. The request passes through the card network to the issuing bank.
  • 4. The issuer checks funds and fraud and authenticates the customer (for example by OTP or 3-D Secure).
  • 5. An approval or decline response travels back to the merchant in seconds.
  • 6. Settlement: funds move to the acquiring bank and on to the merchant, usually T+1 or T+2, minus the MDR or fees.

Security

  • SSL/TLS encryption protects data in transit.
  • PCI-DSS compliance is required for anyone handling card data.
  • Tokenisation replaces card numbers with tokens. In India, the RBI mandates card-on-file tokenisation.
  • Two-factor authentication (OTP) and fraud-detection tools add further protection.

Key terms

Payment gateway
A service that securely transmits online payment data between the merchant and the banks for authorisation.
Issuing bank
The customer's bank, which issued the card and approves the payment.
Acquiring bank
The merchant's bank, which receives the settled funds.
PCI-DSS
The Payment Card Industry Data Security Standard for protecting cardholder data.
Tokenisation
Replacing sensitive card details with a unique token.
MDR
Merchant Discount Rate, the fee a merchant pays per transaction.

Takeaways

  • The gateway encrypts and routes payment data. It does not itself approve payments.
  • The issuing bank authorises the payment, and the acquiring bank receives the funds for the merchant.
  • Authorisation happens in seconds, while settlement takes a day or more.
  • Security relies on SSL, PCI-DSS, tokenisation and OTP authentication.
Contribute

Was this lesson helpful?

We read every rating and fix the weakest lessons first.