5D Library › Cross-Border Payment Routing, Chargeback Defense Games and Treasury Ruin Bounds · 中文

Preface: Getting Paid, and Staying Liquid

Note

Please read this first. This book studies three things in cross-border collection: how to route orders between cards and local instant transfers so as to keep the card channel’s chargeback ratio below the monitoring lines; how to meet “friendly fraud” with evidence and deterrence; and how much cash a firm needs so as not to run dry when a payment gateway withholds a reserve or freezes settlements. Order volumes, event rates, margins, refund rates, freeze frequencies and win probabilities are illustrative or synthetic models, meant to show structure, not data from any real merchant or gateway; all data are generated by the programs printed in the book. Card network rules are stated as found in public sources at the time of writing; before acting, check the acquirer’s current rules. The book is not legal, financial or compliance advice.

Volume 79 dealt with recovering abandoned carts. This book deals with the moment of payment and the months after: which channel a cross-border order should take, how to respond when chargebacks come, and how deep the cash pool should be. Each question has a popular answer: the issuers’ chargeback red line is 0.9%, so high-risk orders should be steered to irreversible QR payment; automatically generated cryptographic evidence packages win against free-rider chargebacks; a large enough reserve achieves zero ruin. This book writes them as runnable arithmetic and then asks when they hold.

What the book contains

Chapter 1 computes multi-channel routing and control of the chargeback ratio, and shows the lag that late chargebacks bring. Chapter 2 computes the random variation of the ratio and the effect of fast refunds. Chapter 3 writes friendly fraud as a game of deterrence and scores evidence packages, and Chapter 4 builds a hash-chained evidence log and compares fighting disputes with pre-dispute alerts. Chapter 5 computes ruin probabilities and rolling reserves with the Cramér-Lundberg model, and Chapter 6 gives a formula for the minimum safe reserve and computes the effect of spreading over several gateways. Chapter 7 reads the maritime levies in the History of Song’s treatise on food and money, and the secret codes and transfers of the Shanxi remittance banks of the Ming and Qing. Chapter 8 gives a year’s ledger, stress tests and a pre-registered experiment.

Claims corrected on checking

  1. 0.9% is not the issuers’ red line, and no longer the current one. It was the standard threshold of Visa’s old Dispute Monitoring Program (VDMP), which also required at least 100 disputes, and that programme was retired in March 2025; the current VAMP counts fraud reports and disputes together, with an “excessive” threshold of 1.5% for Asia Pacific merchants and a floor of 1,500 events a month (Chapter 1, p03).
  2. Routing works, but it must be done at checkout. Steering the riskiest orders to QR lowers the card ratio from 0.94% to 0.59% for about 2% of margin; chargebacks arrive late, and reacting to last month’s ratio still leaves 2.74 months a year above the line, against 1.33 when predicting from scores at checkout (p01, p02).
  3. A dispute that is won still counts in the ratio. Fighting only recovers money; what lowers the ratio is fast refunds (227 fewer disputes refunding in 1 day rather than 14) and pre-dispute alerts (p04, p08).
  4. Evidence works by deterrence, and the “considered purchase” tick counts least. Once the win probability reaches 0.75, false disputes vanish in the illustrative model; of four kinds of evidence, dropping the terms tick costs only 0.065 of win probability (p05, p06).
  5. A hash chain proves integrity, not truth (p07).
  6. “Zero ruin” cannot be bought. In the Cramér-Lundberg model the ruin probability is above zero for every finite reserve; with illustrative parameters, 1% needs RM 175,281 (p09).
  7. The greatest risk is a freeze, not a reserve. With one gateway, staying in cash in 99% of cases over two years needs RM 3,114,683; spread over four gateways, only RM 1,258,468 (p10, p12).
  8. Two historical points. The Song maritime “chou jie” levy was a tax, never returned, unlike a reserve that is released; “zhuo ying ji xu” is found in the Qing statutes on granary reserves, not coined by the remittance banks (Chapter 7).

How to read the boxes

Marked boxes separate published evidence, runnable Python calculations (16 programs, standard library only, fixed random seeds, each actually run at build time with its real output printed below it), classical sources, notes and the author’s hypotheses; every hypothesis states what result would show it wrong. Programs and their output use ASCII characters only.

Disclosure

The author uses the works of 5D Library, including this book, as the methodological basis of his community courses, the 5D Ascension Cards (Dimensional Shift Card Decks) and the Yafu AI knowledge base, and runs a number of websites, paid online reading software, subscriptions, reports, courses, business licences and advisory services, collecting cross-border payments on several sites by card and local instant transfer, whose payment routing, chargeback handling and cash reserves are exactly what this book studies, so he has a direct commercial interest in its subject. The book promotes no software, course, card deck or service, uses no transaction or user data from the author’s businesses, and accepts no sponsorship from payment providers or anyone else. Its parameters are synthetic or illustrative. The experiment in Chapter 8 must follow a pre-registered protocol, and its results will be published whether positive or negative.

Fan, Y. (2026). Cross-Border Payment Routing, Chargeback Defense Games and Treasury Ruin Bounds: Multi-Acquirer Success Optimization, Dispute Evidence Scoring and Cramér-Lundberg Cash Reserves [跨境支付智能路由、拒付抗辩博弈与资金池破产边界] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090225 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).