m2pfintech

Architecture

Detailed architecture of the M2P Prepaid Platform — inter-service communication, routing, and technology stack.

The M2P Prepaid Platform follows a microservices architecture with synchronous REST communication between services. Each service is independently deployable, scalable, and responsible for a clearly defined domain.


Inter-Service Communication

All services communicate via synchronous REST over HTTP. The API Gateway handles external request routing, while internal services call each other directly.


Routing Rules

API Gateway Routing

Path PatternTarget ServiceDescription
/Yappay/**Business Logic ServiceAll customer, card, wallet, and transaction APIs
/provision/**Token Service ProviderTokenization and digital wallet APIs
/auth/**Authentication ServiceLogin and authorization endpoints

Internal Routing

SourceTargetOperations
Business LogicSystem of RecordBalance checks, credit/debit, limit enforcement
Business LogicBank IntegrationKYC, fund transfers, bank account operations
API GatewaySystem of RecordDirect SOR access for partner token operations
API GatewayToken ServiceVTS/MDES/NPCI tokenization requests

Technology Stack

The platform is built on a modern, enterprise-grade technology stack:

LayerTechnology
AuthenticationJWT-based token authentication with session management
API GatewayRESTful API gateway with intelligent routing
Business LogicMicroservices architecture with ORM-based data access
System of RecordHigh-performance database layer with ACID compliance
Bank IntegrationMulti-protocol integration (ISO 8583, REST, SOAP)
Token ServiceCertified tokenization service provider
Card MessagingISO 8583 standard messaging protocol
EncryptionRSA + AES envelope encryption with HSM-based key management

Asynchronous Processing

While the primary request path is fully synchronous, the platform uses asynchronous processing for:

  • Gateway async reversal — Automatic reversal on POS/ATM transaction timeouts
  • Bank reconciliation — Scheduled batch jobs for settlement file processing
  • Notification dispatch — Non-blocking notification delivery after transaction completion

On this page