Skip to main content

Payment Gateway Integration Guide

Payment gateway integration varies significantly between card-present (in-person) and card-not-present (online) environments. This guide covers practical integration approaches, security requirements, and PayFac-specific considerations across all commerce channels.


Card-Present vs Card-Not-Present Gateways

The Critical Distinction

Understanding the difference between card-present (CP) and card-not-present (CNP) integration is fundamental to payment architecture:

+------------------------------------------------------------------------------+
| CARD-PRESENT vs CARD-NOT-PRESENT GATEWAY INTEGRATION |
+------------------------------------------------------------------------------+

CARD-NOT-PRESENT (CNP) CARD-PRESENT (CP)
====================== ==================

CHANNEL: E-commerce, mobile apps, Physical retail, restaurants,
phone orders service businesses

CARD DATA Customer types card Card physically read by
ENTRY: number manually terminal (chip, swipe, tap)

INTEGRATION: Gateway API/SDK Terminal firmware OR
Hosted checkout pages cloud gateway API

SECURITY: Tokenization P2PE (Point-to-Point Encryption)
Hosted fields (iFrames) PCI PTS certified terminals
SAQ A or SAQ A-EP Semi-integrated architecture

FRAUD RISK: HIGHER LOWER
(no card present) (card + cardholder verified)

INTERCHANGE: HIGHER rates LOWER rates
(2.3-3.0%+ for credit) (1.5-2.0% for credit)

CHARGEBACK HIGHER LOWER
RISK: (cardholder can claim (chip liability shift to issuer)
"card not present")

3D SECURE: Critical for liability shift Not applicable
Required in EU (SCA/PSD2) (physical card verification)

TYPICAL • Authorize.Net • Ingenico terminals
SOLUTIONS: • Stripe Checkout • Verifone terminals
• Braintree Web SDK • Stripe Terminal
• Adyen Drop-in • Adyen POS
• NMI hosted payment page • Square Terminal

+------------------------------------------------------------------------------+

Why This Matters for PayFacs

When building a PayFac platform, you must consider which commerce channels your sub-merchants will use:

  1. CNP-Only PayFac (Most common starting point)

    • SaaS platforms, e-commerce platforms, marketplaces
    • Simpler technical integration
    • Higher risk tolerance requirements from sponsor bank
    • Examples: Stripe Connect (initially CNP-only), Shopify Payments
  2. CP-Only PayFac (Less common, specific verticals)

    • POS systems, restaurant/retail platforms
    • Terminal hardware procurement and management
    • Lower interchange, lower risk
    • Examples: Square, Clover
  3. Omnichannel PayFac (Advanced, unified commerce)

    • Retailers selling online + in-store
    • Unified reporting across all channels
    • Technical complexity: two integration types
    • Examples: Adyen for Platforms, Stripe Terminal + Connect

Integration Complexity Comparison

AspectCard-Not-PresentCard-Present
Development Time2-4 weeks for basic integration4-12 weeks (hardware procurement + testing)
Technical ComplexityModerate (API integration, hosted fields)Higher (terminal SDKs, firmware, semi-integration)
Hardware RequiredNonePayment terminals ($200-$800 each)
PCI ComplianceSAQ A (22 questions) or A-EP (181 questions)SAQ B or C (varies by architecture)
TestingSandbox APIs, test card numbersPhysical test terminals, test cards
Ongoing MaintenanceAPI updates, SDKsTerminal firmware updates, hardware replacements

Card-Present Integration Deep Dive

Terminal Architecture Options

When integrating card-present payments, there are two primary architectural approaches:

Option 1: Traditional Terminal Firmware

+------------------------------------------------------------------------------+
| TRADITIONAL TERMINAL ARCHITECTURE |
+------------------------------------------------------------------------------+

┌──────────────────────────────────────────┐
│ PAYMENT TERMINAL │
│ │
│ ┌────────────────────────────────────┐ │
│ │ EMBEDDED FIRMWARE │ │
│ │ │ │
│ │ • Transaction logic │ │
│ │ • EMV kernel │ │
│ │ • Gateway communication │ │
│ │ • UI/display control │ │
│ │ • Receipt printing │ │
│ │ │ │
│ │ ALL processing IN terminal │ │
│ └────────────────────────────────────┘ │
└──────────────────────────────────────────┘

│ Direct processor connection

┌────────────┐
│ Processor │
└────────────┘

EXAMPLES: Ingenico, Verifone, PAX standalone terminals

PROS:
✓ Works offline (store-and-forward)
✓ No cloud dependency
✓ Battle-tested, reliable
✓ Lower PCI scope for merchant

CONS:
✗ Firmware updates slow/complex
✗ Limited features (constrained by hardware)
✗ Terminal-specific development
✗ Hard to unify with online channels
✗ Merchant must manage terminal fleet

+------------------------------------------------------------------------------+

Option 2: Cloud Gateway API (Smart Terminals)

+------------------------------------------------------------------------------+
| MODERN CLOUD GATEWAY API |
+------------------------------------------------------------------------------+

┌──────────────────────────────────────────┐
│ SMART TERMINAL │
│ │
│ ┌────────────────────────────────────┐ │
│ │ THIN CLIENT │ │
│ │ │ │
│ │ • Card reader only │ │
│ │ • P2PE encryption │ │
│ │ • Sends data to cloud │ │
│ │ • Displays responses │ │
│ └────────────────────────────────────┘ │
└──────────────────────────────────────────┘

│ HTTPS to cloud

┌──────────────────────────────────────────┐
│ CLOUD GATEWAY │
│ │
│ • Business logic │
│ • Feature development │
│ • Multi-location management │
│ • Analytics / reporting │
│ • Integration ecosystem │
└──────────────────────────────────────────┘


┌────────────┐
│ Processor │
└────────────┘

EXAMPLES: Stripe Terminal, Square Terminal, Adyen POS

PROS:
✓ Rich features (inventory, CRM, analytics)
✓ Fast updates (deploy to cloud)
✓ Omnichannel unified
✓ Lower terminal cost (commodity hardware)
✓ Centralized fleet management

CONS:
✗ Internet required
✗ Cloud outage = all terminals down
✗ Latency considerations
✗ Higher PCI scope for platform

+------------------------------------------------------------------------------+

P2PE (Point-to-Point Encryption)

Card-present security relies on P2PE to protect card data from the moment it's read:

+------------------------------------------------------------------------------+
| P2PE ENCRYPTION FLOW |
+------------------------------------------------------------------------------+

Customer taps/inserts card


┌──────────────────────────────────────────┐
│ TERMINAL CARD READER │
│ │
│ Card data encrypted IMMEDIATELY │
│ with unique hardware key │
│ │
│ Plain text card data NEVER │
│ available to terminal software │
└──────────────────────────────────────────┘

│ Encrypted blob sent to processor

┌──────────────────────────────────────────┐
│ PROCESSOR HSM │
│ (Hardware Security Module) │
│ │
│ ONLY entity that can decrypt │
│ card data using secure keys │
└──────────────────────────────────────────┘

BENEFIT FOR PAYFAC PLATFORM:
• Card data never touches your servers in plain text
• Reduced PCI scope (SAQ P2PE-HW)
• Merchant/sub-merchant protected from breaches
• Hardware tamper-resistant

REQUIREMENT:
• PCI PTS certified terminals (physical security)
• P2PE validated solution (encryption + key management)

+------------------------------------------------------------------------------+

Semi-Integrated Architecture

For POS software providers and PayFac platforms, semi-integrated architecture is the recommended approach:

+------------------------------------------------------------------------------+
| SEMI-INTEGRATED POS ARCHITECTURE |
+------------------------------------------------------------------------------+

┌──────────────────────────────────────────┐
│ POS SOFTWARE │
│ (Your application / platform) │
│ │
│ • Inventory management │
│ • Employee management │
│ • Reporting / analytics │
│ • Customer data (non-payment) │
│ │
│ NO ACCESS TO CARD DATA │
└──────────────────────────────────────────┘

│ API call: "Charge $50.00"

┌──────────────────────────────────────────┐
│ PAYMENT TERMINAL │
│ (Separate device) │
│ │
│ • Prompts customer │
│ • Reads card (P2PE encrypted) │
│ • Sends to gateway/processor │
│ • Returns approval/decline │
│ │
│ Card data ISOLATED │
└──────────────────────────────────────────┘

COMMUNICATION: USB, Bluetooth, or network connection
PROTOCOL: Terminal API (vendor-specific SDK)

EXAMPLES:
• Ingenico Telium API
• Verifone VeriShield SDK
• PAX Store integration
• Stripe Terminal SDK

PCI BENEFIT:
• POS software out of scope
• Terminal handles card security
• Easier validation (SAQ B vs SAQ D)

+------------------------------------------------------------------------------+

PayFac Considerations: CNP vs CP

Platform Decision Framework

When building a PayFac platform, choosing between CNP, CP, or omnichannel impacts:

  1. SPONSOR BANK REQUIREMENTS

    • CNP platforms: Higher risk, more stringent underwriting
    • CP platforms: Lower risk, easier approval
    • Omnichannel: Combined risk assessment
  2. TECHNICAL COMPLEXITY

    • CNP: API integration only
    • CP: Terminal procurement, firmware, SDKs, logistics
    • Omnichannel: Unified architecture challenge
  3. ECONOMICS

    • CNP: Higher interchange (worse economics), but simpler
    • CP: Lower interchange (better economics), but hardware costs
    • Omnichannel: Blended rates, most complexity
  4. MARKET OPPORTUNITY

    • CNP: SaaS, e-commerce, digital services
    • CP: Retail, restaurants, service businesses
    • Omnichannel: Retailers expanding online or online brands opening physical stores
  5. UNDERWRITING

    • CNP merchants: Higher risk categories
    • CP merchants: Generally lower risk
    • Sub-merchant MCC may determine eligibility

Hybrid Architecture Example

Many PayFacs start CNP-only, add CP later:

+------------------------------------------------------------------------------+
| HYBRID PAYFAC ARCHITECTURE |
+------------------------------------------------------------------------------+

Phase 1: CNP Only
─────────────────
Stripe/Adyen API → CNP transactions → Fast launch

Phase 2: Add CP
─────────────────
Same provider's terminal solution → Unified platform
OR
NMI (CNP) + separate CP provider → More complexity

EXAMPLE: Shopify Payments
• Started: CNP only (online stores)
• Added: Shopify POS hardware (card-present)
• Result: Omnichannel unified commerce

TECHNICAL CHALLENGE:
• Two different integration patterns
• Unified reporting across channels
• Reconciliation complexity
• Terminal logistics and support

+------------------------------------------------------------------------------+

Terminal Firmware vs Gateway API

Understanding the technical difference:

+------------------------------------------------------------------------------+
| TERMINAL FIRMWARE vs CLOUD GATEWAY API |
+------------------------------------------------------------------------------+

TRADITIONAL: FIRMWARE-BASED
===========================

┌──────────────────────────────────────────┐
│ PAYMENT TERMINAL │
│ │
│ ┌────────────────────────────────────┐ │
│ │ EMBEDDED FIRMWARE │ │
│ │ │ │
│ │ • Transaction logic │ │
│ │ • EMV kernel │ │
│ │ • Gateway communication │ │
│ │ • UI/display control │ │
│ │ • Receipt printing │ │
│ │ │ │
│ │ ALL processing IN terminal │ │
│ └────────────────────────────────────┘ │
└──────────────────────────────────────────┘

│ Direct processor connection

┌────────────┐
│ Processor │
└────────────┘

PROS:
✓ Works offline (store-and-forward)
✓ No cloud dependency
✓ Battle-tested, reliable

CONS:
✗ Firmware updates slow/complex
✗ Limited features (constrained by hardware)
✗ Terminal-specific development
✗ Hard to unify with online channels


MODERN: CLOUD GATEWAY API
==========================

┌──────────────────────────────────────────┐
│ SMART TERMINAL │
│ │
│ ┌────────────────────────────────────┐ │
│ │ THIN CLIENT │ │
│ │ │ │
│ │ • Card reader only │ │
│ │ • P2PE encryption │ │
│ │ • Sends data to cloud │ │
│ │ • Displays responses │ │
│ └────────────────────────────────────┘ │
└──────────────────────────────────────────┘

│ HTTPS to cloud

┌──────────────────────────────────────────┐
│ CLOUD GATEWAY │
│ │
│ • Business logic │
│ • Feature development │
│ • Multi-location management │
│ • Analytics / reporting │
│ • Integration ecosystem │
└──────────────────────────────────────────┘


┌────────────┐
│ Processor │
└────────────┘

PROS:
✓ Rich features (inventory, CRM, analytics)
✓ Fast updates (deploy to cloud)
✓ Omnichannel unified
✓ Lower terminal cost (commodity hardware)

CONS:
✗ Internet required
✗ Cloud outage = all terminals down
✗ Latency considerations

+------------------------------------------------------------------------------+

Key Terminology Summary

TermDefinitionContext
P2PEPoint-to-Point Encryption - encrypts card data at terminal, decrypts only at processorCard-present security standard
PCI PTSPIN Transaction Security - hardware certification for payment terminalsTerminal compliance requirement
EMVChip card standard (Europay, Mastercard, Visa)Card-present transaction security
Terminal FirmwareSoftware embedded in payment terminal hardwareTraditional standalone approach
Gateway APICloud-based service terminals communicate withModern integrated approach
Semi-IntegratedPOS software separated from payment terminalPCI scope reduction method
OmnichannelUnified payment experience across all channels (online, in-store, mobile)Strategic approach
Store-and-ForwardTerminal stores transactions offline, transmits when onlineFirmware-based resilience
Terminal SDKSoftware development kit for integrating with payment terminalsDeveloper integration tool

Gateway vs Processor: The Critical Distinction

The Fundamental Difference

+------------------------------------------------------------------------------+
| GATEWAY vs PROCESSOR COMPARISON |
+------------------------------------------------------------------------------+

PAYMENT GATEWAY PAYMENT PROCESSOR
=============== =================

PRIMARY Secure data Money movement
FUNCTION: transmission and settlement

ROLE: Technology layer Financial processing layer

WHAT IT • Encrypts card data • Routes to card networks
DOES: • Transmits to processor • Manages clearing
• Returns auth response • Handles settlement
• Tokenization • Interchange calculation
• Fraud screening • Funding coordination

LICENSING: Technology provider • Card network registration
(usually no MTL required) • Sponsor bank relationship
• Full PCI Level 1

FEE Monthly + per-transaction Interchange + assessments
STRUCTURE: technology fee + processor markup

EXAMPLES • Authorize.Net (standalone) • First Data (Fiserv)
(PURE): • NMI (white-label) • TSYS
• Spreedly (orchestration) • Worldpay

EXAMPLES Stripe, Adyen, Braintree, Square, Checkout.com
(BUNDLED): (these handle BOTH gateway AND processing functions)

+------------------------------------------------------------------------------+

Why This Distinction Matters

Understanding Payment Architecture:

When you integrate Stripe, you're using BOTH layers:

   Your Application


┌─────────────────────────────────────────────┐
│ STRIPE │
│ ┌────────────────────────────────────────┐ │
│ │ GATEWAY LAYER │ │
│ │ • Stripe.js / Elements (hosted fields)│ │
│ │ • API endpoints │ │
│ │ • Tokenization vault │ │
│ │ • Radar fraud screening │ │
│ └────────────────────────────────────────┘ │
│ │ │
│ ┌────────────────────────────────────────┐ │
│ │ PROCESSOR LAYER │ │
│ │ • Direct card network connections │ │
│ │ • Authorization routing │ │
│ │ • Settlement/clearing │ │
│ │ • Sponsor bank relationships │ │
│ └────────────────────────────────────────┘ │
└─────────────────────────────────────────────┘


Card Networks (Visa/MC)

Traditional (Unbundled) Setup:

   Your Application


┌─────────────────────┐ ┌─────────────────────┐
│ AUTHORIZE.NET │ │ FIRST DATA │
│ (Gateway) │────>│ (Processor) │
│ │ │ │
│ $25/month │ │ Interchange + 0.30% │
│ + $0.10/txn │ │ + $0.10/txn │
└─────────────────────┘ └─────────────────────┘


Card Networks

Trade-offs:

FactorBundled (Stripe/Adyen)Unbundled (Gateway + Processor)
Simplicity✓ One vendor, one contractTwo relationships to manage
PricingFixed (2.9% + $0.30)Interchange-plus (potentially lower)
FlexibilityLocked to their processingCan switch processors
NegotiationLimited at scaleMore leverage with volume
IntegrationSingle integrationPotentially two integrations

Types of Payment Gateways

1. Standalone Gateways

Authorize.Net

  • Founded: 1996
  • Ownership: Visa Inc. (acquired 2010)
  • Merchants: ~500,000
  • Distribution: Direct and through resellers
Pricing OptionMonthly FeeTransaction Fee
Gateway Only$25$0.10
All-in-One (w/ processing)$252.9% + $0.30

NMI (Network Merchants, Inc.)

  • Founded: 2001
  • Merchants: ~150,000
  • Annual Processing: $68+ billion
  • Ownership: Centerbridge Partners (private equity)
  • Pricing: ~$20/month + $0.13/transaction (via resellers)
  • Distribution: White-label ONLY
+------------------------------------------------------------------------------+
| NMI WHITE-LABEL MODEL |
+------------------------------------------------------------------------------+

NMI provides gateway technology

┌─────────────┼─────────────┬─────────────┐
│ │ │ │
▼ ▼ ▼ ▼
[ISO](/ecosystem/industry-players/isos) "A" ISO "B" Processor PayFac "X"
Gateway Gateway Gateway Gateway
│ │ │ │
│ (Each rebrands NMI as their own) │
│ │
▼ ▼
Merchant Merchant
sees ISO's sees PayFac's
brand brand

BENEFITS:
• Fast time-to-market (no development)
• Lower cost than building proprietary
• 100+ processor integrations available
• ISO/PayFac controls billing and support

+------------------------------------------------------------------------------+

2. Integrated Gateway-Processors

ProviderFounded2024 VolumeMarket SharePricing
Stripe2010$1.4 trillion20.8% (US)2.9% + $0.30
Adyen2006€1.29 trillionEnterprise leader€0.11 + pass-through
Braintree2007-PayPal ecosystem2.59% + $0.49
Checkout.com2012$300 billionEnterprise challengerCustom
Square2009-SMB leader2.6-2.9% + $0.30

Key Differentiators:

  • Stripe: Developer-first, best APIs, fastest integration
  • Adyen: "Unified commerce" - single platform for online + POS
  • Braintree: Easy Venmo/PayPal integration
  • Checkout.com: Network token optimization, enterprise focus
  • Square: SMB-friendly, POS + online unified

3. Payment Orchestration Platforms

+------------------------------------------------------------------------------+
| PAYMENT ORCHESTRATION ARCHITECTURE |
+------------------------------------------------------------------------------+

YOUR APPLICATION


┌─────────────────────────────┐
│ ORCHESTRATION LAYER │
│ (Spreedly / Primer.io) │
│ │
│ • Single API integration │
│ • Unified token vault │
│ • Smart routing rules │
│ • Fallback logic │
│ • Consolidated reporting │
└─────────────────────────────┘
│ │ │
┌──────────┘ │ └──────────┐
│ │ │
▼ ▼ ▼
┌───────────┐ ┌───────────┐ ┌───────────┐
│ Stripe │ │ Adyen │ │ Worldpay │
│ (US) │ │ (Europe) │ │ (APAC) │
└───────────┘ └───────────┘ └───────────┘

ROUTING EXAMPLES:
=================
• EU cards → Adyen (local acquiring, lower fees)
• US cards → Stripe (highest auth rates)
• Stripe declines → Retry via Worldpay
• High-risk MCC → Specialized processor

+------------------------------------------------------------------------------+

Spreedly

  • PSP Connections: 240+
  • Growth: 27% YoY transaction volume increase
  • Model: Gateway aggregation + token orchestration

Primer.io

  • Model: Unified payment infrastructure (beyond orchestration)
  • Features: PSPs + fraud tools + 3DS + reconciliation in one API
  • Customer success: Banxa recovered $7M+ in H1 2024 using fallbacks

Market Growth:

  • 2024: $1.2 billion
  • 2032 projection: $23.9 billion
  • CAGR: 19-35%

PCI Scope Reduction Methods

Payment gateways offer several methods to reduce merchant PCI compliance burden:

Hosted Payment Pages

+------------------------------------------------------------------------------+
| HOSTED PAYMENT PAGE FLOW |
+------------------------------------------------------------------------------+

Customer Merchant Site Gateway Hosted Page
│ │ │
│ 1. Click "Pay Now" │ │
│────────────────────────>│ │
│ │ │
│ 2. Redirect to gateway │
│<────────────────────────────────────────────────────>│
│ │ │
│ Card data NEVER │
│ touches merchant │
│ │ │
│ │ 3. Customer enters card │
│ │ on gateway page │
│ │<───────────────────────────│
│ │ │
│ 4. Redirect back with token │
│<────────────────────────────────────────────────────>│
│ │ │

PROS: CONS:
✓ Lowest PCI scope ✗ Customer leaves merchant site
✓ Gateway handles compliance ✗ Limited branding control
✓ Simple integration ✗ Can impact conversion

+------------------------------------------------------------------------------+

Hosted Fields (iFrame)

+------------------------------------------------------------------------------+
| HOSTED FIELDS / IFRAME |
+------------------------------------------------------------------------------+

MERCHANT'S CHECKOUT PAGE
┌─────────────────────────────────────────────────────────────┐
│ │
│ Name: ┌─────────────────────────────────────────────┐ │
│ │ John Smith (merchant) │ │
│ └─────────────────────────────────────────────┘ │
│ │
│ Card: ┌─────────────────────────────────────────────┐ │
│ │ 4111 1111 1111 1111 ┌──────────┐ │ │
│ │ │ iFrame │ │ │
│ │ Rendered from GATEWAY │ from │ │ │
│ │ server, styled to match │ gateway │ │ │
│ │ merchant branding └──────────┘ │ │
│ └─────────────────────────────────────────────┘ │
│ │
│ Exp: ┌──────────┐ CVV: ┌──────────┐ │
│ │ 12/25 │ │ 123 │ ← Also iFrames │
│ └──────────┘ └──────────┘ │
│ │
│ [ Pay $99.00 ] │
│ │
└─────────────────────────────────────────────────────────────┘

HOW IT WORKS:
=============
1. Gateway's JavaScript SDK loads on merchant page
2. Card fields render as iFrames from gateway's secure servers
3. Card data entered directly into gateway (never merchant DOM)
4. Merchant controls page design, gateway handles card security
5. On submit, gateway returns token to merchant

EXAMPLES: Stripe Elements, Adyen Web Drop-in, Braintree Hosted Fields

PROS: CONS:
✓ Seamless UX (no redirect) ✗ Slightly more complex integration
✓ Full branding control ✗ JavaScript dependency
✓ Reduced PCI scope
✓ Best of both worlds

+------------------------------------------------------------------------------+

PCI SAQ Types Reference

ScenarioSAQ TypeQuestionsPCI Burden
Hosted payment page (redirect)SAQ A22 questionsLowest
Hosted fields (iFrame)SAQ A-EP181 questionsMedium
Direct API (you handle PAN)SAQ D329 questionsHighest

PayFac Implication: If you aggregate under master merchant (recommended), YOU carry the PCI burden for all sub-merchants. Hosted fields are the sweet spot: good UX + reasonable compliance burden.


3D Secure & Strong Customer Authentication

Modern gateways must support 3D Secure 2.x for regulatory compliance, especially in Europe (PSD2/SCA).

3DS 2.x vs 3DS 1.0

Feature3DS 1.0 (Legacy)3DS 2.x (Current)
User ExperienceRedirect flow, password entryFrictionless, risk-based
Data SharedMinimal100+ data points
Cart Abandonment15-30% drop~5% drop
Challenge RateAll transactions~5-10% of transactions
Mobile SupportPoorNative SDKs

How 3DS Works Through Gateways

+------------------------------------------------------------------------------+
| 3D SECURE 2.x FLOW |
+------------------------------------------------------------------------------+

Customer Gateway 3DS Server Issuer ACS
│ │ │ │
│ 1. Payment │ │ │
│────────────────────> │ │
│ │ │ │
│ │ 2. 3DS request │ │
│ │────────────────────>│ │
│ │ │ │
│ │ │ 3. Auth request │
│ │ │─────────────────>│
│ │ │ │
│ │ │ Risk Score │
│ │ │<─────────────────│
│ │ │ │
┌───────────────────────────────────────────────────────────────────────┐
│ DECISION POINT: │
│ LOW RISK → Frictionless approval (no customer action) │
│ HIGH RISK → Challenge required (OTP, biometric, app approval) │
└───────────────────────────────────────────────────────────────────────┘
│ │ │ │
│ 4. Result │ │ │
│<──────────────────── │ │
│ │ │ │

EXEMPTIONS (Gateway can request):
• TRA (Transaction Risk Analysis): under €500 with low fraud rate
• Low-Value: Transactions under €30
• Recurring/Subscription: After initial authentication
• Merchant-Initiated (MIT): Delayed charges, installments

+------------------------------------------------------------------------------+

Gateway Role in 3DS

ResponsibilityWhat Gateway Does
IntegrationConnect to 3DS servers (issuer ACS, network directory)
Exemption StrategyApply TRA exemptions intelligently
Challenge UXEmbed challenge in checkout (not redirect)
FallbackHandle 3DS 1.0 fallback for older issuers
MIT HandlingManage merchant-initiated transaction flags

PayFac 3DS Considerations

  • Sub-merchants inherit PayFac's 3DS configuration
  • Regional routing needed (EU requires 3DS, US typically optional)
  • Auth rate optimization through smart exemption strategies
  • Risk data from PayFac platform improves exemption success

Decline Management & Recovery

The False Decline Problem

Scale: $331 billion in sales lost annually to false declines (2024)

  • 15% of transactions incorrectly declined by issuers
  • 40% of falsely declined customers never return
  • Costs merchants 13x more than fraud losses

Gateway-Based Recovery Strategies

+------------------------------------------------------------------------------+
| INTELLIGENT DECLINE RECOVERY |
+------------------------------------------------------------------------------+

STRATEGY 1: SMART RETRY LOGIC
=============================

Initial decline: Reason code 05 (Do Not Honor)


Wait 24-72 hours (issuer velocity limits reset)


Retry with updated AVS data


If decline again → Try alternative processor


Recovery rate: 10-30% of initially declined transactions


STRATEGY 2: NETWORK TOKEN RETRY
===============================

Transaction declined with PAN


Gateway requests network token from VTS/MDES


Retry with token + cryptogram


Typical lift: 2-3% approval increase


STRATEGY 3: CASCADING LOGIC
===========================

Primary Processor (lowest cost)
│ decline

Secondary Processor (higher auth rates)
│ decline

Third Processor (last resort, specialized)

+------------------------------------------------------------------------------+

Common Decline Reason Codes

CodeMeaningRecovery Strategy
05Do Not HonorRetry after 24-72 hours
51Insufficient FundsRetry in 5-7 days
14Invalid Card NumberContact customer
54Expired CardAccount Updater or contact customer
65Activity LimitRetry after 24 hours
N7CVV MismatchRe-collect card details

PayFac Application

  • Build retry orchestration into platform
  • Don't retry too aggressively (issuer fraud flags)
  • Track decline reason codes by processor for optimization
  • Use aggregate data advantage (patterns across sub-merchants)

Gateway Economics & Pricing

Pricing Models

+------------------------------------------------------------------------------+
| GATEWAY PRICING COMPARISON |
+------------------------------------------------------------------------------+

BUNDLED PRICING (Gateway + Processing)
======================================

Provider Per-Transaction Monthly Fee Notes
────────────────────────────────────────────────────────────
Stripe 2.9% + $0.30 $0 Pay-as-you-go
Square 2.9% + $0.30 $0 Standard rate
Braintree 2.59% + $0.49 $0 Cards/wallets
Braintree 3.49% + $0.49 $0 Venmo
Adyen €0.11 + pass-through €0 Interchange++


GATEWAY-ONLY PRICING
====================

Provider Per-Transaction Monthly Fee Notes
────────────────────────────────────────────────────────────
Authorize.Net $0.10 $25 Gateway only
NMI ~$0.13 ~$20 Via resellers
Custom/Ent. $0.05-$0.15 $50-$500 Negotiated


COST COMPARISON EXAMPLE
=======================

$100 Visa Rewards Credit Card (CNP) transaction:

BUNDLED (Stripe):
$100 × 2.9% + $0.30 = $3.20 total cost

UNBUNDLED (Authorize.Net + First Data):
Gateway: $0.10
Interchange: $100 × 1.80% + $0.10 = $1.90
Assessment: $100 × 0.14% = $0.14
Processor: $100 × 0.30% + $0.10 = $0.40
─────────────────────────────────────────
Total: $2.54

SAVINGS: $0.66 per transaction (20.6%)

AT SCALE:
$1M monthly volume × 0.66% savings = $6,600/month = $79,200/year

+------------------------------------------------------------------------------+

Industry Cost Statistics (2024)

MetricValueSource
Merchant fees per $100 accepted$1.57Nilson Report
Total US merchant fees$38+ billionIndustry analysis
Revenue lost to processing1-3%Varies by business

Hidden Gateway Fees to Watch For

Fee TypeTypical AmountNotes
Monthly minimum$25-$50Required minimum processing volume
Batch fees$0.10-$0.25/daySettlement batch submission
Chargeback fees$15-$25 eachDispute handling
PCI non-compliance$50-$200/monthIf merchant fails PCI validation
Gateway replacement$295-$495If switching to new gateway
IRS reporting (1099-K)$50-$150/yearFor PayFacs/platforms
Early termination$295-$495Contract cancellation penalty
International/cross-border1-2% additionalCurrency conversion markup

PayFac Consideration: These fees are often passed to sub-merchants. Build transparent fee schedules and disclose all fees upfront.


PayFac Implications

How PayFacs Use Gateways

+------------------------------------------------------------------------------+
| PAYFAC GATEWAY ARCHITECTURE |
+------------------------------------------------------------------------------+

SUB-MERCHANT A SUB-MERCHANT B SUB-MERCHANT C
│ │ │
└──────────┬──────────┴──────────┬──────────┘
│ │
▼ │
┌───────────────────────────────────┐ │
│ PAYFAC PLATFORM │ │
│ ┌─────────────────────────────┐ │ │
│ │ White-Label Gateway │ │ │
│ │ (NMI or proprietary) │ │ │
│ │ │ │ │
│ │ • Sub-merchant hierarchy │ │ │
│ │ • Tokenization per sub │ │ │
│ │ • Separate reporting │ │ │
│ └─────────────────────────────┘ │ │
│ │ │ │
│ ┌─────────────────────────────┐ │ │
│ │ Master Merchant Account │ │ │
│ └─────────────────────────────┘ │ │
└───────────────│───────────────────┘ │
│ │
▼ │
┌───────────────────────────────────┐ │
│ PROCESSOR │ │
│ │◄┘
└───────────────────────────────────┘


CARD NETWORKS


PAYFAC GATEWAY REQUIREMENTS:
============================
1. Sub-merchant account structure (hierarchical)
2. Separate settlement per sub-merchant
3. Isolated reporting per sub-merchant
4. Tokenization scoped to sub-merchant (not shared)
5. White-label branding options
6. API for sub-merchant provisioning

+------------------------------------------------------------------------------+

Gateway Choice Impact on PayFac

FactorImpact
API QualitySub-merchants integrate via PayFac's gateway
Feature SetDetermines what features PayFac can offer
ReliabilityDowntime affects ALL sub-merchants
Global SupportLimits PayFac's geographic expansion
White-LabelBranding consistency for platform

PayFac Gateway Options

Option 1: Build Proprietary

  • Full control and differentiation
  • Cost: $millions in development + ongoing maintenance
  • Timeline: 12-24+ months
  • Best for: Large platforms with unique requirements

Option 2: White-Label Gateway (NMI)

  • Fast launch, lower cost
  • Less differentiation
  • Choose your own processor(s)
  • Best for: PayFacs wanting processor flexibility

Option 3: Integrated Platform (Stripe Connect / Adyen for Platforms)

  • Fastest launch, turnkey solution
  • Locked into their processing
  • Best for: Speed-to-market priority

Gateway Orchestration for Advanced PayFacs

+------------------------------------------------------------------------------+
| ADVANCED PAYFAC MULTI-PROCESSOR STRATEGY |
+------------------------------------------------------------------------------+

PAYFAC ORCHESTRATION LAYER

┌──────────────────────────┼──────────────────────────┐
│ │ │
▼ ▼ ▼
┌───────────┐ ┌───────────┐ ┌───────────┐
│Processor A│ │Processor B│ │Processor C│
│ │ │ │ │ │
│ High-risk │ │ Low-risk │ │ Intl │
│ tolerant │ │ low fees │ │ coverage │
└───────────┘ └───────────┘ └───────────┘
│ │ │
│ │ │
Sub-merchants: Sub-merchants: Sub-merchants:
• CBD • SaaS • EU merchants
• Crypto • Retail • APAC merchants
• Supplements • Services • Cross-border

ROUTING RULES:
• MCC 5967 (direct marketing) → Processor A
• MCC 5734 (software) → Processor B
• IP geolocation EU → Processor C
• Fallback: Primary declines → retry with secondary

+------------------------------------------------------------------------------+

Major Players Landscape (2024-2025)

Market Positions

+------------------------------------------------------------------------------+
| PAYMENT GATEWAY MARKET LANDSCAPE |
+------------------------------------------------------------------------------+

INTEGRATED GATEWAY-PROCESSORS (LEADERS)
=======================================

Volume Market Share Valuation
───────────── ───────────── ─────────────
Stripe $1.4T (2024) 20.8% (US) $91.5B
Adyen €1.29T Enterprise €48B
PayPal/Braintree - 43.4% (US)* $60B+
Checkout.com $300B Challenger $12B
Square (Block) - SMB leader $40.7B

* PayPal overall market share including all payment products


STANDALONE GATEWAYS
===================

Merchants Processing Owner
───────────── ───────────── ─────────────
Authorize.Net ~500,000 - Visa
NMI ~150,000 $68B+ Centerbridge


ORCHESTRATION PLATFORMS
=======================

PSP Connections Growth Focus
───────────── ───────────── ─────────────
Spreedly 240+ 27% YoY Open payments
Primer.io 50+ - Unified infra


RECENT M&A (2024-2025)
======================
• Global Payments acquiring Worldpay: $22.7B (announced 2024, pending regulatory approval)
• Nexi acquired Computop: German e-commerce gateway leader
• Visa acquired Pismo: $1B (Brazil, infrastructure)

+------------------------------------------------------------------------------+

Self-Assessment Questions & Answers

Question 12: What is the key difference between a payment gateway and a payment processor?

Answer:

AspectPayment GatewayPayment Processor
Primary FunctionSecurely collects and transmits payment dataRoutes transactions and moves money between banks
Position in FlowCustomer-facing, front-endBack-end, between gateway and card networks
What It DoesEncrypts card data, sends to processor, returns responseAuthorizes transactions, handles settlement/clearing
Security RoleProtects data in transit, reduces PCI scopeEnsures network compliance, fraud detection
Examples (Standalone)Authorize.Net, NMI, SpreedlyFirst Data (Fiserv), TSYS, Worldpay

Analogy:

  • Gateway = The secure mailroom that receives and packages letters
  • Processor = The postal system that actually delivers the letters and handles money

Modern Reality: Many providers (Stripe, Adyen, Square) bundle both into one service, which is why the distinction can be confusing. But understanding the difference helps when:

  • Architecting payment systems
  • Negotiating contracts
  • Evaluating costs (gateway fee vs processing fee)
  • Planning multi-processor strategies

Key Takeaways

  1. Gateways = Secure Data Transmission - They transmit payment data; processors move money

  2. Modern Gateways Are Feature-Rich - Tokenization, fraud tools, hosted fields, multi-processor routing far beyond simple data transmission

  3. Bundled vs Unbundled Trade-off - Stripe/Adyen (integrated) offer simplicity; separate gateway + processor offers flexibility and potentially lower costs at scale

  4. Payment Orchestration Is Exploding - Fastest-growing segment ($1.2B → $23.9B by 2032), enabling multi-processor strategies

  5. Network Tokenization Is The Future - 2-3% auth uplift, automatic card updates, interchange savings; Visa targeting 100% by 2030

  6. PCI Scope Reduction - Hosted payment pages (SAQ A) vs hosted fields (SAQ A-EP) offer different trade-offs between security and UX control

  7. 3D Secure/SCA Is Essential - Required in Europe (PSD2), critical for reducing fraud and liability; 3DS 2.x enables frictionless flows

  8. Decline Management Is Revenue - $331B lost annually to false declines; smart retry logic and cascading can recover 10-30%

  9. PayFac Gateway Needs - Sub-merchant hierarchy, separate settlement, white-label options critical for platform success

  10. White-Label Model - NMI pioneered letting ISOs/PayFacs offer "their own" gateway without building technology

  11. Watch for Hidden Fees - Monthly minimums, batch fees, PCI non-compliance penalties can significantly impact total cost

  12. Gateway Choice is Strategic - Affects sub-merchant experience, international expansion capability, and long-term platform flexibility


References

Market Research & Industry Analysis

Gateway Provider Resources

Network Tokenization

Gateway Comparisons

M&A and Industry News


Previous Topic: Payment Processors

Next Topic: Acquiring Banks


TopicDescription
The Four-Party ModelInterchange economics and fee structures
Card Network RoleNetwork assessments and CP/CNP distinction
Transaction LifecycleAuthorization, settlement, and chargebacks
Debit Networks & RoutingPINless routing through gateway
Payment ProcessorsGateway vs processor distinction
Acquiring BanksSettlement and sponsor bank relationships
ISOsWhite-label gateway distribution
ISVsPayFac model and embedded payments