← Reference · Nestor G Pestelos Jr
Reference Document
Online Payments
A citable reference on how electronic money moves: 4-party card flows, CNP fraud mechanics, PCI DSS compliance, Ruby adapter abstractions, and US vs. Philippine interbank settlement rails.
Essays in this Series (Travel Guide to Philippine Payments)
- 📖 US and Philippine Payment Rails — Mapping equivalent wholesale, batch, and instant rails.
- 📖 InstaPay is Not ACH — Why customer-instant settlement is not RTGS interbank posting.
- 📖 Payments Glossary — The foundational vocabulary and stable anchor addresses for the series.
- 🌳 Online Payments Knowledge Tree — Prerequisite dependency graph and mastery frontier.
Jump to Section
1. The Core Split: Private Card Overlays vs. Public Rails
An electronic payment belongs to one of two fundamental architectures (detailed in US and Philippine Payment Rails):
- Private Card Overlays (Visa, Mastercard, Amex): The network operates a messaging switch. The cardholder's bank issues credit or debit; the merchant's bank receives funds days later. Authorization is an instantaneous hold, not a settlement.
- Public Interbank Settlement Rails (Fedwire, PhilPaSSplus, ACH, InstaPay): Banks maintain reserve accounts directly with the central bank (Federal Reserve or Bangko Sentral ng Pilipinas). Settlement transfers sovereign central bank balances between depository institutions.
2. The Four-Party Card Model
Open card networks operate across four distinct entities connected by the network switch:
| Role | Definition | Key Responsibility |
|---|---|---|
| Cardholder | The consumer presenting a Primary Account Number (PAN). | Initiates purchase; pays issuing bank per billing agreement. |
| Merchant | The seller of goods or services. | Collects order details; presents auth request via gateway; pays merchant discount rate (MDR). |
| Acquirer | The merchant's acquiring bank. | Underwrites merchant risk; routes transactions through the card network; funds merchant bank accounts. |
| Issuing Bank | The cardholder's bank. | Holds cardholder account; approves/declines authorizations; holds default credit risk; receives interchange. |
| Card Network (Scheme) | Visa, Mastercard, Discover (or 3-party closed loop Amex). | Maintains switch hardware and rules; routes messages; sets interchange tables and scheme assessments. |
The Payment Service Provider (PSP) Collapse
In legacy setups, merchants contracted separately with a Gateway (message encryption/routing), a Processor (network formatting), and an Acquirer (merchant account underwriting). Modern PSPs (e.g., Stripe, Adyen, Braintree) collapse all three into a single API contract and single payout schedule.
3. Card Transaction Lifecycle
A card transaction moves through three distinct chronological phases:
| Phase | Timeframe | What Actually Happens |
|---|---|---|
| 1. Authorization | 1–3 seconds | Issuer checks credit limit and fraud rules. Reserves funds on the cardholder account and returns an auth code. No money moves between banks. |
| 2. Capture | At shipment or EOD | Merchant signals that goods were delivered and claims the authorized hold. Can capture full, partial, or multiple amounts against an open authorization. |
| 3. Clearing & Settlement | 1–3 business days | Acquirer submits captured batch to network. Network nets positions across banks. Issuer debits cardholder; acquirer credits merchant minus interchange and fees. |
4. Card-Not-Present (CNP) & Security Regime
CNP Fraud & Liability
In Card-Present (CP) transactions with EMV chip-and-PIN, fraud liability rests with the party failing to support EMV (usually the issuer). In Card-Not-Present (CNP) e-commerce transactions, fraudulent chargebacks land by default on the merchant, who loses both the merchandise and the purchase price, plus a penalty fee.
3-D Secure (EMV 3DS) & PSD2 SCA
3-D Secure (3DS v2) is an XML/JSON messaging protocol that enables authentication directly between the consumer and their issuing bank prior to authorization.
- Frictionless Flow: Merchant passes device and behavioral telemetry to the issuer. If risk is low, authentication passes invisibly.
- Challenge Flow: High-risk transactions trigger step-up authentication (biometric, SMS OTP, or banking app approval).
- Liability Shift: Passing 3DS shifts the liability for fraudulent chargebacks from the merchant to the issuing bank.
PCI DSS & Scope Reduction
The Payment Card Industry Data Security Standard (PCI DSS) mandates security controls for entities storing, processing, or transmitting Cardholder Data (CHD).
- SAQ A (Hosted Fields / iFrames): Merchant servers never touch or receive the Primary Account Number (PAN). Card data is captured directly by PSP JavaScript into secure iframes. Self-Assessment Questionnaire A is minimal (~22 requirements).
- SAQ D (Direct API Intake): Card PAN touches merchant servers before forwarding. Requires full PCI DSS validation (~300+ technical controls and annual penetration testing).
5. Software Abstractions: ActiveMerchant & Rails
ActiveMerchant is an open-source Ruby payment library extracted by Shopify in June 2006. It standardizes disparate bank APIs behind a unified object-oriented interface:
- Standard Verbs:
authorize(money, credit_card, options),capture(money, authorization, options),purchase(money, credit_card, options),void(authorization, options),refund(money, identification, options). - Integer Cents Rule: All monetary amounts are passed as integers representing the currency subunit (e.g.
4000for $40.00 USD) to prevent floating-point arithmetic errors. - Response Envelope: Returns a standardized
Responseobject indicatingsuccess?,authorizationtoken, raw error messages, and AVS/CVC match codes.
6. Interbank Rails: United States vs. Philippines
A detailed architectural comparison of US and Philippine settlement mechanisms is explored in US and Philippine Payment Rails and InstaPay is Not ACH.
| Payment Job | United States Rail | Philippine Rail | Settlement Mechanism |
|---|---|---|---|
| Wholesale / High-Value RTGS | Fedwire Funds (Federal Reserve) | PhilPaSSplus (BSP) | Real-time gross settlement; immediate central bank account debit/credit. |
| Planned Batch ACH | ACH (FedACH / EPN; Nacha rules) | PESONet (PCHC; NRPS policy) | Net settlement across multiple scheduled batch windows during business days. |
| Instant Retail Account-to-Account | FedNow / RTP (The Clearing House) | InstaPay (BancNet switch; PhilPaSSplus net) | FedNow settles instantly per item at Fed; InstaPay settles customer instant 24/7 with prefunded collateral nets on PhilPaSSplus. |
| QR Interoperability Standard | Proprietary (Venmo, Zelle, Cash App) | QR Ph (EMVCo national QR standard) | Routes P2P and P2M transactions across participating banks and e-wallets via InstaPay/PESONet. |
7. Comprehensive Glossary Index
AVS and CVC:
Address Verification Service checks the cardholder's numeric street address and ZIP against issuer records. Card Verification Code (CVV2/CVC2) checks the 3- or 4-digit code on the card. Both reduce fraud but do not trigger liability shifts.
BancNet:
The consortium and technical switch operator designated by the Bangko Sentral ng Pilipinas to process InstaPay retail transactions in the Philippines.
Chargeback:
A forced reversal of funds initiated by the issuing bank on behalf of the cardholder, citing fraud, non-delivery, or authorization error.
Interchange Fee:
The fee paid by the acquiring bank to the issuing bank on every card transaction to compensate the issuer for credit risk and processing costs.
Nacha:
National Automated Clearinghouse Association. The private governance body that authors operating rules and formats for the US ACH network.
NRPS:
National Retail Payment System. The regulatory policy framework established by BSP Circular 980 in 2017 governing interoperable Philippine retail electronic payment schemes (InstaPay and PESONet).
PAN:
Primary Account Number. The 15- or 16-digit number embossed on a payment card that identifies the card scheme, issuer bank identification number (BIN), and individual account.
PCHC:
Philippine Clearing House Corporation. The clearing operator for checks, PESONet batch electronic transfers, PDDTS (domestic USD transfers), and PhP-USD PvP.
RA 11127:
The National Payment Systems Act of 2018. The Philippine statute granting Bangko Sentral ng Pilipinas comprehensive regulatory oversight, licensing, and operational authority over all national payment systems.