Leanpub Header

Skip to main content

How Card Payments Work

Inside the Systems Behind Issuing, Authorization, Clearing, and Settlement

How Card Payments Work
This book is 100% completeLast updated on 2026-09-10

What really happens when you pay with a card? This book takes you behind the scenes of modern card payments, breaking down the systems, players and processes that make every transaction work, from issuing and authorization to clearing and settlement.

Minimum price

$25.00

$35.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
262
Pages
About

About

About the Book

This book explains the complete end-to-end architecture of modern card issuing. From customer onboarding through card creation, authorization, clearing, settlement, and eventual closure, you will learn what happens behind the scenes at every stage. The material covers the roles and interactions of issuers, issuing processors, card networks, banks, program managers, fraud systems, tokenization services, and every other component that makes a card transaction work in production. This is written for engineers, architects, product leaders, and operators who need to understand how card issuing actually functions under the hood.

Author

About the Author

Steve Publications

Steve is a technology professional with more than 20 years of experience in software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. Throughout his career, he has designed, secured, analyzed and tested complex software and infrastructure, with a particular focus on understanding how systems fail and how they can be made more secure.

Outside of work, Steve enjoys sharing knowledge with the technology community. He collaborates with researchers, industry experts and technology professionals to write practical books covering software development, cybersecurity, cloud computing, networking, DevOps, artificial intelligence and enterprise technologies. His books focus on practical learning through clear explanations, real-world examples and hands-on exercises. With more than two decades of industry experience, his goal is to help IT professionals, students and technology enthusiasts build useful skills and stay current in a rapidly changing industry.

We believe readers deserve to know how our books are created. Most of our authors are not native English speakers, so we use AI to help translate, proofread manuscripts, fix grammar, improve sentence structure and make technical explanations easier to read. AI is used as an editing tool only. It does not replace the research, technical knowledge or hands-on experience behind our books. Some of our authors also prefer to remain anonymous for privacy or professional reasons. In those cases, we publish their work under a different name. The author's name may be different, but the quality of the content and our review process remain the same.

Every book is written, reviewed and maintained by experienced technology professionals, with contributions from our private technical community of more than 420 engineers and researchers. We spend far more time validating technical accuracy and keeping our content up to date than generating text. We are always interested in working with experienced professionals who have deep expertise in a particular technology or domain. If you would like to publish a book with us or help review an existing manuscript, we'd love to hear from you. Send us a message describing your area of expertise. We are especially interested in niche technologies, specialized skills and emerging topics that are underrepresented in existing technical literature.

If you look through the contents of our books, you'll see practical examples, detailed explanations and material that is regularly updated. Our goal is to publish books that professionals can actually rely on, not low-effort AI-generated content. If you ever feel that one of our books does not meet that standard, Leanpub offers a 60-day money-back guarantee. Feel free to request a refund if you are not satisfied with your purchase.

Contents

Table of Contents

Inside the Systems Behind Issuing, Authorization, Clearing, and Settlement

Introduction: What Happens When You Swipe a Card

  1. Why This Book Exists
  2. How This Book Is Organized
  3. What This Book Does Not Cover
  4. How to Read This Book

Chapter 1: The Landscape of Card Issuing

  1. The Anatomy of a Payment Transaction
  2. Issuers, Acquirers, Networks, and Processors
  3. The Four-Party Model Explained
  4. What Card Issuing Actually Means
  5. Physical vs Virtual Cards
  6. Credit vs Debit vs Prepaid

Chapter 2: Card Networks: Visa, Mastercard, and Beyond

  1. What Card Networks Actually Own and Operate
  2. Network Rules and Compliance Requirements
  3. Transaction Message Flow Through the Network
  4. BIN Ranges and Issuer Identification
  5. Network Fee Structure and Interchange
  6. Regional and Alternative Networks

Chapter 3: Issuing Processors and the Processor Model

  1. The Role of the Issuing Processor
  2. Major Issuing Processor Models
  3. What the Processor Provides vs What You Build
  4. SPI and Network Direct Integration Paths
  5. Sponsor Banks and Program Managers
  6. Cost Structures and Contract Considerations

Chapter 4: Core Banking and Cardholder Account Management

  1. Core Banking System Responsibilities
  2. Account Structures: Primary, Sub, and Virtual Accounts
  3. Ledger Design for Card Accounts
  4. Balances, Available vs Posted Amounts
  5. Integration Between Core Banking and Card Systems
  6. Customer Onboarding and KYC Integration

Chapter 5: Card Product Design and Configuration

  1. Card Product Definition and Parameters
  2. Currency, Region, and Network Configuration
  3. Card Controls: Spending Limits, Blocks, and Rules
  4. Fee Structures: Interchange Pass-Through, Monthly Fees, FX
  5. Rewards, Cashback, and Points Program Architecture
  6. Launching a New Card Product

Chapter 6: Identity Verification, KYC, and AML

  1. Regulatory Requirements for Issuers
  2. KYC Flows: Document Verification and Identity Proofing
  3. AML Screening and Watchlists
  4. PEP Screening and Risk Categorization
  5. Integration with Identity Providers

Chapter 7: Card Number Generation and PAN Management

  1. How PANs Are Structured: IIN, Account, Check Digit
  2. The Luhn Algorithm and PAN Validation
  3. BIN Allocation and Management
  4. PAN Assignment and Account Mapping
  5. Virtual Card Number Generation Strategies
  6. PAN Tokenization at the Issuer Level

Chapter 8: Physical Card Production and Personalization

  1. The Card Manufacturing Supply Chain
  2. Personalization Bureaus and HSM Integration
  3. EMV Chip Personalization
  4. PIN Generation and Secure Delivery
  5. Card Packaging, Shipping, and Tracking
  6. Production Failures and Rework

Chapter 9: Digital Card Provisioning and Tokenization

  1. Virtual Card Issuance and Instant Activation
  2. Apple Pay, Google Pay, and Samsung Pay Tokenization
  3. Token Service Providers and Network Tokenization
  4. Device Binding and Provisioning Flows
  5. Ephemeral and Single-Use Virtual Cards
  6. Tokenization Technical Deep Dive: How Network Tokens Work
  7. Push Provisioning and Remote Token Enrollment
  8. Tokenization and Authorization Rate Improvement

Chapter 10: The Authorization System

  1. The Authorization Request: From Terminal to Issuer
  2. ISO 8583 and Modern API Protocols
  3. The Authorization Decision Engine
  4. Real-Time Balance and Limit Checking
  5. Velocity Checks and Pattern Analysis
  6. Response Codes and Decline Reasons
  7. Decision Engine Architecture
  8. Pre-Checks and Post-Checks in Authorization
  9. Handling Edge Cases and Partial Failures
  10. Authorization Analytics and Continuous Optimization

Chapter 11: Fraud Detection and Risk Systems

  1. Rule-Based Fraud Detection
  2. Machine Learning Models in Fraud Scoring
  3. Device Fingerprinting and Behavioral Biometrics
  4. Real-Time Decisioning and Latency Constraints
  5. Advanced Fraud Patterns and Detection Strategies
  6. Feature Engineering for Fraud Detection
  7. Fraud Feedback Loops and Model Retraining
  8. Managing False Positives and Cardholder Experience

Chapter 12: 3-D Secure and Authentication Flows

  1. What 3-D Secure Is and Why It Exists
  2. 3DS 1.0 vs 2.0 Architecture
  3. The Authentication Flow: DS, ACS, and Interoperability Server
  4. Liability Shift and Exemption Criteria
  5. Frictionless vs Challenge Flows
  6. 3DS and Digital Wallets
  7. Technical Deep Dive: 3DS 2.0 Protocol Messages and Cryptography
  8. Operational Considerations for Issuers

Chapter 13: Holds, Authorizations, and Pre-Authorizations

  1. Authorization Holds and Pending Balances
  2. Capture and Settlement Timing
  3. Partial Authorizations and Partial Captures
  4. Authorization Reversals and Voids
  5. Extended Holds: Hotels, Rental Cars, Gas Stations
  6. Hold Expiration and Balance Recovery

Chapter 14: Clearing: The Batch That Moves Transaction Details

  1. Authorization vs Clearing: Why Two Steps
  2. Clearing File Formats and Schedules
  3. The Clearing Cycle: Cut-off Times and Deadlines
  4. Merchant Clearing and Acquirer Roles
  5. Network Clearing Rules and Validation
  6. Clearing Exceptions and Rejections
  7. Clearing File Formats and Standards
  8. The Clearing Pipeline: Step-by-Step Processing
  9. Clearing Reconciliation and Discrepancy Resolution

Chapter 15: Settlement: When Money Actually Moves

  1. Settlement vs Clearing: The Critical Distinction
  2. Net Settlement and Offset Calculations
  3. Reserve Accounts and Liquidity Management
  4. Settlement Timing: T+1, T+2, and Beyond
  5. FX Settlement and Multi-Currency Clearing
  6. Settlement Failures and Reconciliation
  7. Float Management and Settlement Economics
  8. Settlement Banks and Fund Transfer Mechanisms
  9. Settlement Accounting and Ledger Updates

Chapter 16: Fees, Interchange, and Revenue

  1. Interchange Fee Structure and Rate Tables
  2. Assessments and Network Fees
  3. Scheme vs Member Fees
  4. Processor Pricing Models
  5. Revenue Attribution and Allocation
  6. Fee Pass-Through and Merchant Incentives

Chapter 17: Reconciliation and Operations

  1. What Reconciliation Means in Card Issuing
  2. Three-Way Reconciliation: Authorization, Clearing, Settlement
  3. Exception Handling and Unreconciled Items
  4. Batch Reconciliation Jobs and Scheduling
  5. Operational Controls and Auditing
  6. Common Reconciliation Pain Points

Chapter 18: Refunds, Reversals, and Returns

  1. Refunds vs Voids vs Reversals vs Credits
  2. The Refund Transaction Flow
  3. Partial Refunds and Timing
  4. Refunds After Expiration
  5. Network Recall and Recall-For-Payment
  6. Accounting Treatment of Reversals

Chapter 19: Disputes and Chargebacks

  1. What a Chargeback Is and When It Happens
  2. Chargeback Reasons and Representment
  3. The Dispute Lifecycle: Filing, Response, Arbitration
  4. Evidence Gathering and Compelling Evidence Standards
  5. Chargeback Fees and Financial Impact
  6. Representment Automation and Strategy
  7. The Chargeback Lifecycle: End-to-End Workflow
  8. Evidence Gathering and Compelling Evidence Standards
  9. Backend Dispute Management Systems
  10. Chargeback Fees and Financial Impact
  11. Representment Automation and Strategy
  12. Liability Shift Scenarios and 3-D Secure Impact on Disputes

Chapter 20: Card Lifecycle Management

  1. Card Expiration and Renewal Cycles
  2. Lost and Stolen Card Blocking
  3. Card Replacement Workflows
  4. Card Controls: Freezing, Unfreezing, Temporary Limits
  5. Account Closure and Fund Return
  6. Card Status Transitions and State Machine

Chapter 21: ATM and Cash Transactions

  1. ATM Network Processing vs POS Networks
  2. PIN Verification and PIN Blocks
  3. Cash Advance Authorization and Fees
  4. ATM Settlement and Cash Loading
  5. International ATM Fees and Networks
  6. Cashback at POS

Chapter 22: Cross-Border and Multi-Currency Processing

  1. Currency Identification and FX Rates
  2. Dynamic Currency Conversion
  3. Issuer FX Markup and Conversion Logic
  4. Cross-Border Interchange and Regulations
  5. Multi-Currency Cards and Accounts
  6. Sanctions and Geopolitical Constraints

Chapter 23: System Architecture for Modern Card Issuing

  1. Event-Driven Architecture for Card Issuing
  2. Microservices: Which Services Split, Which Stay Monolithic
  3. Real-Time Data Stores and Ledger Design
  4. Idempotency, Consistency, and Transaction Safety
  5. API Design: Internal vs External
  6. Observability: Logging, Tracing, and Monitoring
  7. Infrastructure Patterns for Card Issuing
  8. Scalability Patterns and Throughput Management
  9. Development Practices and Release Management
  10. Processor Architecture: Monolith vs Microservices
  11. Edge Services and Global Authorization Routing

Chapter 24: Security, Compliance, and Resilience

  1. PCI-DSS for Issuers and Processors
  2. HSMs and Cryptographic Key Management
  3. Data Privacy: GDPR, CCPA, and Beyond
  4. Network Security and Threat Protection
  5. Disaster Recovery and High Availability
  6. Regulatory Auditing and Examination

Chapter 25: Failure Modes and Edge Cases

  1. Network Outages and Fallback Processing
  2. Duplicate Transaction Handling
  3. Race Conditions in Authorization and Balance Updates
  4. Reconciliation Discrepancies and Recovery
  5. Mass Failure Scenarios and Incident Response
  6. Operational Runbooks and Escalation

Conclusion: The Future of Card Issuing

  1. Real-Time Issuing and Instant Card Activation
  2. Embedded Finance and B2B2C Issuing
  3. Account-Based Payments and Card Competition
  4. Tokenization and the Death of the PAN
  5. Regulatory Trajectory
  6. What This Means for Practitioners

References

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub