Skip to content
Log inStart free

Design paper

A decision architecture for payment routing, retries and risk controls

Abstract

Static payment routing, a fixed priority list of gateways with hand-written retry rules, cannot respond to changes in issuer behaviour, corridor conditions or fraud patterns. We describe a design that treats each payment as a sequence of decisions: which gateway or payment method to try, whether to add a step-up check, whether and when to retry, and what to offer the buyer after a decline. The design has two parts. A signal layer ingests payment events under schema, consent and residency contracts and maintains features. An orchestration layer scores those features with causal and predictive models and chooses actions with a constrained contextual bandit, behind a safety layer and staged rollout. We argue each part from published work, give a worked model of the trade-off between fees and authorization probability, and set out what would have to be measured before any outcome could be claimed. This is a design proposal, not a measured result.

Method. Design paper: the architecture is argued from the cited literature; we report no measurements of our own. Table 2 is a worked model with its inputs shown and labelled hypothetical.

References

  1. 1

    Pearl, J. (2009). Causality: Models, reasoning, and inference (2nd ed.). Cambridge University Press. doi.org/10.1017/CBO9780511803161

  2. 2

    Athey, S., & Imbens, G. (2016). Recursive partitioning for heterogeneous causal effects. Proceedings of the National Academy of Sciences, 113(27). doi.org/10.1073/pnas.1510489113

  3. 3

    Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems 30 (arXiv:1705.07874). arxiv.org/abs/1705.07874

  4. 4

    Kleppmann, M. (2017). Designing data-intensive applications: The big ideas behind reliable, scalable, and maintainable systems. O'Reilly Media. dataintensive.net/

  5. 5

    Kullback, S., & Leibler, R. A. (1951). On information and sufficiency. The Annals of Mathematical Statistics, 22(1). doi.org/10.1214/aoms/1177729694

  6. 6

    Abadie, A., Diamond, A., & Hainmueller, J. (2010). Synthetic control methods for comparative case studies: Estimating the effect of California's tobacco control program. Journal of the American Statistical Association, 105(490). doi.org/10.1198/jasa.2009.ap08746

  7. 7

    Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. doi.org/10.1145/2939672.2939785

  8. 8

    Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. Advances in Neural Information Processing Systems 30 (arXiv:1706.03762). arxiv.org/abs/1706.03762

  9. 9

    Box, G. E. P., Jenkins, G. M., Reinsel, G. C., & Ljung, G. M. (2015). Time series analysis: Forecasting and control (5th ed.). Wiley. www.wiley.com/en-us/Time+Series+Analysis%3A+Forecasting+and+Control%2C+5th+Edition-p-9781118675021

  10. 10

    Agarwal, A., Hsu, D., Kale, S., Langford, J., Li, L., & Schapire, R. E. (2014). Taming the monster: A fast and simple algorithm for contextual bandits. Proceedings of the 31st International Conference on Machine Learning, PMLR 32. proceedings.mlr.press/v32/agarwalb14.html

  11. 11

    Patil, V., Ghalme, G., Nair, V., & Narahari, Y. (2021). Achieving fairness in the stochastic multi-armed bandit problem. Journal of Machine Learning Research, 22. www.jmlr.org/papers/v22/20-704.html

  12. 12

    Johari, R., Koomen, P., Pekelis, L., & Walsh, D. (2017). Peeking at A/B tests: Why it matters, and what to do about it. Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. doi.org/10.1145/3097983.3097992

  13. 13

    Deng, A., Xu, Y., Kohavi, R., & Walker, T. (2013). Improving the sensitivity of online controlled experiments by utilizing pre-experiment data. Proceedings of the Sixth ACM International Conference on Web Search and Data Mining. doi.org/10.1145/2433396.2433413

  14. 14

    Gefen, D., Karahanna, E., & Straub, D. W. (2003). Trust and TAM in online shopping: An integrated model. MIS Quarterly, 27(1). doi.org/10.2307/30036519

  15. 15

    Kohavi, R., Tang, D., & Xu, Y. (2020). Trustworthy online controlled experiments: A practical guide to A/B testing. Cambridge University Press. doi.org/10.1017/9781108653985

Cite this paper

Tanqory Research (2025). A decision architecture for payment routing, retries and risk controls. Tanqory. https://tanqory.com/research/20251230-payment-intelligence-architecture

More research

All research