Payments · Cloud
Real-time payments between banks and mobile networks
Event-driven payment services that connect banks and mobile network operators — direct debits, merchant collections, fees and settlement reporting — run on Google Cloud.
01 Problem
Moving money between banks and mobile wallets in real time means integrating partners with very different APIs, availability and settlement rules — while merchants, banks and operators each need their own view of the same transactions.
The platform had to start small and still be ready to grow from hundreds to thousands of transactions a day without a redesign.
02 Constraints
- Partner APIs fail independently; one slow partner must not stall the others.
- Payment credentials must be stored encrypted and access scoped per service.
- Releases had to get faster without loosening quality gates.
03 Architecture
- 01API gatewaySingle entry point; Keycloak-issued tokens.
- 02Merchant & consumer servicesMandates, merchants and customer flows; tenant-aware.
- 03KafkaServices coupled through events, not synchronous chains.
- 04MNO & bank adaptersMTN, Airtel and bank payment APIs behind dedicated services.
- 05BillingMerchant discount rates, surcharges and revenue splits.
- 06ReportingPostgreSQL reporting model and Metabase dashboards.
04 Decisions
Event-driven coupling
- Chose
- Services communicate through Kafka topics.
- Instead of
- Synchronous REST chains between services.
- Why
- A slow partner integration backs up a topic rather than every caller's thread pool, and services scale independently.
Consolidate reporting on PostgreSQL
- Chose
- Moved the reporting service from MongoDB to PostgreSQL, with customers consolidated into a materialised view.
- Instead of
- Keep a separate document store for reporting.
- Why
- Financial reporting is relational by nature; one engine and one query model simplified joins, correctness and operations.
Least-privilege cloud identity
- Chose
- IAM policies scoped per service on GKE and Cloud Run.
- Instead of
- One shared service account.
- Why
- A compromised or buggy service can only reach the resources it actually needs.
05 Implementation
- Built consumer, merchant, billing, reporting and mobile-network services on Spring Boot.
- GitLab CI pipelines with builds, tests, SonarQube quality gates and automated deployment.
- JUnit 5 and Mockito suites kept above the 80% coverage gate.
- Metabase dashboards for product and finance teams to answer their own reporting questions.
06 Outcomes
- Deployment time cut from about an hour to 15 minutes.
- Coverage held above 80% as enforced by the SonarQube gate.
- Real-time payments across banks and mobile networks on several channels.
Outcomes are limited to what I can verify and share. Internal names, partners, infrastructure details and production data are deliberately omitted.