![Page 1: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/1.jpg)
ARCHITECTURE OF PAYMENT SYSTEMSPetr Afanasiev
Software engineer
Betsson Technologies
![Page 2: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/2.jpg)
RELEVANCE
Internet business is developing More & more products are being sold online More & more services are build on top of
payments
![Page 3: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/3.jpg)
PLAN
Problems & Solutions
Tracing in Service Oriented World Dynamic configuration editor with Asp.Net MVC
General architecture of Betsson Payments
Merchant Payment Systems
Payment Service Providers
![Page 4: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/4.jpg)
Payment Systems
![Page 5: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/5.jpg)
PAYMENT SERVICE PROVIDERS
![Page 6: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/6.jpg)
PAYMENT SERVICE PROVIDERS
Actual bank
Processing
Multiple Banks
Multiple Countries
![Page 7: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/7.jpg)
PSP
Credit Card
eWallet Bank Transfer
Vouchers
The fastest Most used Most
secure*
Supports only some banks
Difficult withdrawals
Security standards
No limits! The
slowest Requires
manual work
May seem more trustworthy
High integration cost
Low popularity
Lot’s of fun for marketing
Local market
No withdrawals
![Page 8: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/8.jpg)
PAYMENT SYSTEMConsolidate PSPs into 1
module
Different payment options by country
Fraud Protection
Monitoring & Reporting
Custom business flows
High Acceptance
Rate
![Page 9: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/9.jpg)
ACCEPTANCE RATE
Bin serie
PSP1
432156 432157 432158 432159 … 432299
PSP2
473485 473486 473487 473488 … 473799
Payment Systems know which PSP to use with which Credit Card
![Page 10: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/10.jpg)
PROVIDER CHAINS
PSP1
PSP2
PSP3
PSP2
PSP3
PSP5
4321 5678 9012 1234
Chain1 Chain2
If one provider failed to process a card – it’s passed to the next provider in chain
It get’s even better ;)
![Page 11: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/11.jpg)
DEVELOPER OVERVIEW OF BETSSON PAYMENTS ARCHITECTURE
Scalability Provider
encapsulation Provider
Configuration Tracing
![Page 12: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/12.jpg)
![Page 13: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/13.jpg)
SIMPLIFIED FLOW
![Page 14: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/14.jpg)
DYNAMIC CONFIGURATION EDITOR WITH ASP.NET MVC
The Problem: Hard to maintain config file 8000 lines of config code Each adapter defines it’s own config section Continuous problems with merging,
synchronization, human error
![Page 15: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/15.jpg)
DYNAMIC CONFIGURATION EDITOR WITH ASP.NET MVC
Easily editable Validated (schema and content) Saved to database Passed over network
![Page 16: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/16.jpg)
DYNAMIC CONFIGURATION EDITOR WITH ASP.NET MVC
![Page 17: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/17.jpg)
DYNAMIC CONFIGURATION EDITOR WITH ASP.NET MVC
![Page 18: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/18.jpg)
DYNAMIC CONFIGURATION EDITOR WITH ASP.NET MVC
![Page 19: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/19.jpg)
TRACING IN SERVICE ORIENTED ARCHITECTURE
![Page 20: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/20.jpg)
TRACING IN SERVICE ORIENTED ARCHITECTURE
How to trace payment request flow across service domain?
PaymentID ? SessionID ?
ActivityID!
![Page 21: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/21.jpg)
TRACING IN SERVICE ORIENTED ARCHITECTURE
![Page 22: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/22.jpg)
TRACING IN SERVICE ORIENTED ARCHITECTURE
![Page 23: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/23.jpg)
TRACING IN SERVICE ORIENTED ARCHITECTURE
![Page 24: Peter Afanasiev - Architecture of online Payments](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547c523fb4af9fd3158b513d/html5/thumbnails/24.jpg)