Skip to content
Advanced Fintech & PaymentsPayment Foundations & Core ArchitectureTopic 2

Payment Aggregators vs Payment Gateways vs PayFacs: Architecture and Business Models

Understanding the architectural and business model differences between payment aggregators, gateways, and payment facilitators

Quick Answer

Payment gateways, aggregators, and payment facilitators (PayFacs) are often confused but have distinct architectures and business models. A payment gateway is the technology that transmits payment data. A payment aggregator (PA) is a licensed entity that onboards merchants and processes payments under its own license. A PayFac is a specialized aggregator that enables sub-merchants to accept payments under the PayFacs master merchant account. In India, RBI regulates PAs and PayFacs separately.

Learning Objectives
1Understand architectural and business model differences between gateways, aggregators, and PayFacs
2Design appropriate architecture for each payment entity type
3Navigate regulatory requirements for PAs and PayFacs in India and globally
4Build merchant onboarding systems for each model
5Design settlement and reconciliation for multi-party payment processing
Executive Summary

The payments industry uses several models for enabling merchants to accept digital payments. Understanding the differences between payment gateways, aggregators, and PayFacs is essential for architects, product managers, and compliance professionals.

A payment gateway provides the technology to transmit payment data. A payment aggregator (PA) is a licensed entity that onboards merchants, processes payments, and settles funds. A PayFac enables sub-merchants under a master merchant account.

Each model has distinct regulatory requirements, settlement flows, risk management approaches, and business economics.

What Is Payment Aggregators vs Payment Gateways vs PayFacs: Architecture and Business Models?

A payment gateway is the technology infrastructure that transmits payment data between a merchant and the payment processor. A payment aggregator (PA) is a licensed entity that onboards sub-merchants and processes payments on their behalf. A payment facilitator (PayFac) is a specialized aggregator that enables sub-merchants to accept payments under the PayFacs master merchant account.

Why This Topic Matters

Choosing the right model determines the regulatory burden, risk exposure, and business economics of a payment business.

Each model has different compliance requirements, settlement flows, and merchant onboarding processes.

In India, RBI has specific guidelines for PAs and is developing frameworks for PayFacs.

Why It Matters in 2026+

In 2026, the lines between gateways, aggregators, and PayFacs are blurring as platforms add capabilities across models.

RBI is evolving its regulatory framework for payment entities, with new requirements for data localization, escrow management, and merchant KYC.

The rise of embedded finance and BaaS is creating new models where platforms offer payment capabilities to their merchants.

Architecture Overview

Architecture differences between gateway, aggregator, and PayFac models:

Reference Architecture

Merchant
↓
Gateway/PA/PayFac
↓
Acquirer
↓
Card Network
↓
Issuer
↓
Settlement

In the gateway model, the merchant has a direct acquiring relationship. In the PA model, the aggregator holds the acquiring relationship. In the PayFac model, sub-merchants are onboarded under the PayFacs master merchant account.

Core Components
ComponentGatewayPAPayFac
Merchant OnboardingDirect MIDPA onboardsSub-merchant under master MID
AcquiringMerchant-acquirerPA-acquirerPayFac-acquirer (master)
SettlementDirect to merchantPA to merchant (escrow)PayFac to sub-merchant
KYCAcquirer doesPA doesPayFac does for sub-merchants
RiskMerchant bearsPA bears merchant riskPayFac bears sub-merchant risk
RegulationPCI DSS, networkRBI PA license, PCIRBI PayFac, PCI
Detailed Technical Architecture

Technical architecture for each model:

Gateway Architecture

Technology-only: API gateway, payment processing, tokenization. No merchant onboarding or settlement.

PA Architecture

Gateway + merchant onboarding + escrow management + settlement + KYC + risk management.

PayFac Architecture

PA + sub-merchant onboarding under master MID + sub-merchant settlement + sub-merchant risk monitoring.

Regulatory Considerations

Regulatory requirements by model:

RequirementGatewayPAPayFac
RBI LicenseNot requiredPA licensePayFac framework
Escrow AccountNot requiredMandatoryMandatory
Merchant KYCAcquirer doesPA doesPayFac does
T+1 SettlementN/AMandatoryMandatory
Data LocalizationPCI scopeMandatoryMandatory
Net WorthN/ARs 15 crore minHigher threshold
Vendor Landscape
Stripe (PayFac)

Acts as PayFac globally, enabling sub-merchants under master account.

PayFacGatewayAggregation
Razorpay (PA)

RBI-licensed payment aggregator in India.

PA licenseGatewayMulti-rail
Adyen (Gateway+Acquirer)

Direct acquiring + gateway for enterprises.

GatewayDirect acquirer
Real Enterprise Case Studies

Real-world implementations:

StripeUSA · Fintech

Context: Global PayFac enabling millions of sub-merchants.

Problem: Simplify merchant onboarding while managing sub-merchant risk.

Architecture: PayFac model with master merchant account. Automated sub-merchant onboarding with risk scoring.

Technology: Ruby, Go, custom risk engine

Outcomes: Millions of sub-merchants. Instant activation for low-risk.

Lessons: PayFac enables instant onboarding. Risk management is critical.

RazorpayIndia · Fintech

Context: RBI-licensed payment aggregator serving 10M+ merchants.

Problem: Navigate RBI PA guidelines while providing seamless merchant experience.

Architecture: PA model with escrow account, T+1 settlement, merchant KYC.

Technology: Go, PostgreSQL, Kafka, AWS

Outcomes: 10M+ merchants. RBI PA license. T+1 settlement.

Lessons: RBI PA compliance is essential. Escrow management is critical.

Common Architecture Mistakes
Storing Raw Card Data

Storing PAN or CVV in databases creates massive PCI DSS scope and security risk. Always use tokenization.

No Idempotency on Payment APIs

Missing idempotency keys on payment endpoints causes duplicate charges on retries. Every payment API must support idempotency.

Synchronous Processing of Async Operations

Treating inherently asynchronous payment operations as synchronous causes timeouts and poor UX. Use webhooks and async patterns.

No Webhook Retry Logic

Failing to retry failed webhook deliveries causes merchants to miss critical payment status updates. Implement exponential backoff retry.

No Reconciliation Automation

Manual reconciliation at scale is error-prone and slow. Automate reconciliation from day one.

Single-Rail Dependency

Depending on a single payment rail creates a single point of failure. Implement multi-rail architecture with failover.

No Fraud Monitoring

Launching without fraud monitoring leads to chargebacks and losses. Implement real-time fraud detection from day one.

Payment Database as Financial Ledger

Using the transaction database as the financial ledger leads to accuracy and audit issues. Maintain a separate double-entry ledger.

KPIs
KPIDescriptionTarget
Authorization RatePercentage of payment attempts that receive authorization> 95%
Payment Success RatePercentage of initiated payments that complete successfully> 97%
API Latency (p99)99th percentile API response time< 500ms
TPS CapacityTransactions per second the system can handleBased on peak demand
Fraud RateFraudulent transactions as percentage of total< 0.1%
Chargeback RateChargebacks as percentage of transactions< 0.75%
UptimeSystem availability99.99%
Reconciliation AccuracyPercentage of transactions successfully reconciled> 99.5%
Practical Project

Design a PayFac Platform

Objective: Design architecture for a PayFac that onboards sub-merchants under a master merchant account.

Scenario: Build a PayFac platform for a marketplace that needs to enable sellers to accept payments without each needing direct acquiring.

Tasks:
  1. Design sub-merchant onboarding with KYC
  2. Design master merchant account architecture
  3. Design sub-merchant settlement and reconciliation
  4. Design sub-merchant risk monitoring
  5. Design regulatory compliance framework

Deliverables: Architecture document, onboarding flow, settlement design, risk model, compliance plan.

Validation: Onboard a test sub-merchant. Process a payment. Verify settlement to sub-merchant. Verify risk monitoring.

Interview Questions

Difference between PA and PayFac?

A PA onboards merchants with their own MIDs. A PayFac onboards sub-merchants under a master MID. PayFacs simplify onboarding but bear more risk.

Why do PAs need an escrow account?

RBI requires PAs to maintain escrow to protect merchant funds. Customer payments go to escrow, PA settles to merchants from escrow.

Frequently Asked Questions (52)
Glossary
PSP

Payment Service Provider: entity that enables merchants to accept payments through multiple payment methods via a single integration.

PayFac

Payment Facilitator: entity that enables sub-merchants to accept payments under the PayFac master merchant account.

Acquirer

Bank or financial institution that processes card transactions on behalf of merchants.

Issuer

Bank or financial institution that issues payment cards to consumers.

Interchange

Fee paid between the acquiring bank and the issuing bank for card transactions, set by card networks.

MID

Merchant ID: unique identifier assigned to a merchant by the acquirer.

PAN

Primary Account Number: the 14-19 digit number on a payment card, considered sensitive cardholder data under PCI DSS.

Tokenization

Process of replacing sensitive card data with a non-sensitive token.

Authorization

Process of verifying that a payment account has sufficient funds and is valid for a transaction.

Capture

Process of finalizing a previously authorized transaction, triggering the transfer of funds.

Clearing

Process of exchanging transaction details between acquiring and issuing banks.

Settlement

Actual transfer of funds between banks to complete a payment transaction.

Chargeback

Transaction dispute initiated by a cardholder through their issuing bank.

MCC

Merchant Category Code: 4-digit code classifying the type of goods or services a merchant sells.

3DS

3-D Secure: authentication protocol for card-not-present transactions.

PCI DSS

Payment Card Industry Data Security Standard: security standard for organizations handling cardholder data.

HSM

Hardware Security Module: physical computing device that safeguards and manages digital keys.

Idempotency

Property of an API where making the same request multiple times produces the same result as making it once.

Webhook

HTTP callback triggered by an event, used in payments for asynchronous notifications.

UPI

Unified Payments Interface: India real-time payment system developed by NPCI.

NPCI

National Payments Corporation of India: umbrella organization for retail payment systems in India.

RBI

Reserve Bank of India: India central bank and regulatory authority for payment systems.

ISO 20022

International standard for electronic data interchange between financial institutions.

ACH

Automated Clearing House: US electronic payment network for batch-processed bank-to-bank transfers.

FedNow

US Federal Reserve instant payment service launched in 2023.

SEPA

Single Euro Payments Area: EU payment integration initiative.

RTP

Real-Time Payments: payment infrastructure enabling instant, irrevocable payments 24/7.

Ledger

Financial record-keeping system using double-entry accounting.

Reconciliation

Process of matching transaction records across different systems to ensure consistency.

Escrow

Financial arrangement where a third party holds funds until conditions are met.

BNPL

Buy Now Pay Later: short-term financing allowing consumers to pay in installments.

BaaS

Banking-as-a-Service: model where licensed banks provide banking infrastructure via APIs.

Open Banking

Practice of providing secure API access to bank account data and payment initiation.

Embedded Finance

Integration of financial services into non-financial platforms via APIs.

Stablecoin

Cryptocurrency designed to maintain stable value by pegging to a reference asset.

Sub-merchant

Merchant onboarded under a PayFacs master merchant account.

Master MID

Merchant ID under which PayFac sub-merchants process payments.

Implementation Checklist
  • Architecture designed and reviewed
  • API contracts defined with idempotency
  • Authentication and authorization implemented
  • PCI DSS scope assessed and minimized via tokenization
  • Error handling and retry logic designed
  • Webhook delivery and retry implemented
  • Security review completed (encryption, HSM, key management)
  • Regulatory requirements identified (RBI, PCI DSS, AML)
  • Data model defined (transactions, ledger, reconciliation)
  • Observability implemented (metrics, logs, traces, alerts)
  • Testing completed (unit, integration, load, chaos)
  • Disaster recovery designed and tested
  • Reconciliation process validated
  • Fraud detection deployed and tuned
  • Production readiness assessed and approved
Career & Enterprise Skills
Payment Architect

Designs end-to-end payment architecture including gateways, orchestration, rails, security, and compliance.

Fintech Architect

Designs comprehensive fintech platform architecture including payments, banking, ledgers, risk, and compliance.

API Architect

Designs API-first payment platforms including REST APIs, webhooks, SDKs, developer portals, and API governance.

Payment Engineer

Implements and operates payment infrastructure including gateway, routing, processing, reconciliation, and settlement.

Platform Engineer

Builds internal developer platforms for payment integration, providing self-service APIs, SDKs, and golden paths.

SRE Engineer

Applies software engineering to payment operations, managing SLI/SLO/error budgets and incident response.

Fraud Analyst

Monitors transaction patterns, investigates suspicious activity, tunes fraud rules, and manages chargeback disputes.

Fintech Product Manager

Defines payment product strategy, manages roadmap, balances user experience with compliance, and drives payment metrics.

Compliance Specialist

Ensures payment systems meet PCI DSS, RBI, AML, and other regulatory requirements.

Treasury Technology Specialist

Implements and operates treasury management systems including liquidity management, settlement, FX, and bank connectivity.

Future Outlook

2027: Payment Aggregators vs Gateways vs PayFacs will see increased AI integration with AI agents handling routine payment decisions, intelligent routing optimization, and predictive fraud prevention becoming standard capabilities.

2028: Autonomous payment systems will mature with self-healing infrastructure, AI-driven reconciliation, and cross-border real-time payments reducing settlement time from days to seconds.

2029: Programmable money and tokenized deposits will enable new payment models with conditional settlement, smart contract-based escrow, and machine-to-machine payments becoming practical.

2030: The convergence of AI, blockchain, and real-time payments will be complete. Payment Aggregators vs Gateways vs PayFacs will be managed through AI agents with humans governing policy, security, and business alignment. Payments will be invisible, instant, and intelligent.

Key Takeaways
  • Gateway, PA, and PayFac are distinct models with different regulatory, risk, and business implications.
  • RBI PA license is mandatory for payment aggregators in India with escrow, T+1, and KYC requirements.
  • PayFac model enables instant merchant onboarding but requires robust sub-merchant risk management.
  • The choice of model determines regulatory burden, risk exposure, and business economics.

Learner outcomes

Careers built on capability

Reported outcomes from professionals across 170+ categories.

Machine Learning pathway increased my salary by 40%

Priya S.Data Scientist, Bangalore
AI & ML

Digital Marketing strategies are practical and India-focused

Amit J.Growth Lead, Delhi
Digital Marketing

Data Science pathway increased my salary by 40%

Rajesh S.Data Scientist, Pune
Data Science

Tokenomics modules helped me lead DeFi projects

Kavita R.Web3 Consultant, Chennai
Blockchain

GTM strategy helped launch my SaaS - 300% revenue growth

Siddharth J.Startup Founder, Mumbai
Business Strategy

Neural Networks course with TensorFlow landed me top AI job

Vikram R.ML Engineer, Hyderabad
Deep Learning

Spark and Kafka modules made my ETL pipelines 10x faster

Arjun M.Data Engineer, Pune
Data Engineering

AWS and Azure certs gave me 50% salary hike

Karthik S.Cloud Architect, Chennai
Cloud Computing

Kubernetes and Docker courses - deployed microservices!

Rohit A.DevOps Engineer, Noida
DevOps

Ethical hacking skills now protect critical infrastructure

Arun P.Security Analyst, Delhi
Cybersecurity

1-on-1 mentoring cracked top product company interviews!

Ananya P.Product Manager, Hyderabad
Product Management

Solidity courses helped build 3 DeFi protocols

Rahul S.Blockchain Dev, Bangalore
Web3

Core banking modules modernized legacy bank systems

Lakshmi V.Banking Tech Lead, Hyderabad
Banking

SEO courses doubled our organic traffic - ROI-focused!

Riya K.Growth Marketer, Delhi
SEO

Enrolled 200+ employees - analytics track progress perfectly

Suresh P.L&D Head, Bangalore
Corporate Training

Edge AI courses deployed smart factory solutions

Manish T.IoT Engineer, Pune
Edge Computing

Unity for VR built enterprise training simulations

Shruti D.AR/VR Dev, Mumbai
Immersive Tech

Warehouse automation reduced operational costs 25%

Gaurav S.SCM Manager, Gujarat
Supply Chain

GCC courses set up offshore center smoothly

Ravi C.GCC Director, Bangalore
GCC Setup

AI advisory content - now advising Fortune 500 clients

Deepika R.Strategy Consultant, Mumbai
Consulting

Power BI course got me promoted in 3 months!

Meera N.Business Analyst, Kochi
Business Intelligence

MLOps bridges data science and production perfectly

Divya K.SRE, Bangalore
MLOps

Zero Trust Security implemented org-wide successfully

Pooja G.InfoSec Manager, Gurgaon
Network Security

ITSM aligned with enterprise needs - training 500+ now

Neha V.Agile Coach, Pune
Agile & Scrum

AI marketing modules - campaign efficiency up 40%

Varun M.CMO, Jaipur
Marketing Strategy

AI in HR reduced time-to-hire by 60%

Preeti S.HR Director, Noida
HR Tech

Lean management optimized manufacturing processes

Anjali M.Operations Head, Ahmedabad
Operations

LLM modules - built first chatbot in weeks!

Sneha I.AI Researcher, Chennai
Generative AI

React and Node.js pathway landed FAANG role

Nikhil T.Full Stack Dev, Bangalore
Web Development

Design thinking transformed user research approach

Simran K.UX Designer, Mumbai
Design Thinking

UPI deep-dive modules helped me architect faster payment reconciliation flows

Tanmay B.FinTech Analyst, Mumbai
FinTech

Multi-cloud architecture course gave me confidence to design resilient hybrid systems

Ishwar D.Cloud Engineer, Bangalore
Cloud Computing

Quantum AI modules opened entirely new problem-solving approaches for my work

Farah Q.Research Analyst, Hyderabad
Quantum AI

ROS and kinematics course let me build my first autonomous navigation pipeline

Harish L.Robotics Engineer, Pune
Robotics

Unity VR modules helped me ship interactive training simulations end-to-end

Sumitra A.Immersive Dev, Chennai
AR/VR

Precision agriculture course gave me frameworks to deploy IoT crop monitoring

Yashwant G.AgriTech Lead, Indore
AgriTech

Last-mile optimization modules cut delivery costs and improved route planning

Nandini R.Logistics Analyst, Gurugram
Supply Chain

Advanced visualization course made my dashboards executive-ready and clear

Omkar V.BI Developer, Nagpur
Data Visualization