Skip to content
Audience view:
← All Architectures

Financial Ledger & Payment Platform

Financial Ledger & Payment Platform

simplified, illustrative

Enterprise payment management backend with Razorpay checkout, idempotent webhook processing, double-entry audit ledger, and two-tier withdrawal approvals.

Layer:
Flow:
Click any node to inspect trade-offs, or press ▶ Play Flow to animate packets across service boundaries.
HTTPS / RESTToken VerifyOrder CreatePayment WebhookAcquire LockVerified CreditWrite JournalWithdraw RequestApproved PayoutClient Web AppReact 19 / ViteAPI GatewayReverse Proxy & Rate LimitAuth & RBAC MatrixJWT & Multi-Role PermissionsRazorpay GatewayExternal Gateway APIWebhook IngestionHMAC Signature & IdempotencyRedis Distributed LocksDuplicate Request BlockDouble-Entry LedgerDebit/Credit Journal EnginePayout Maker-CheckerTwo-Tier Approval ServiceMSSQL Transaction DBImmutable Audit Trails
System Overview & Accessible Text Description

Components: Client Web App (client); API Gateway (gateway); Auth & RBAC Matrix (service); Razorpay Gateway (external); Webhook Ingestion (service); Redis Distributed Locks (cache); Double-Entry Ledger (worker); Payout Maker-Checker (service); MSSQL Transaction DB (db).

Key Data & Auth Flows: Client Web App → API Gateway [HTTPS / REST]; API Gateway → Auth & RBAC Matrix [Token Verify]; API Gateway → Razorpay Gateway [Order Create]; Razorpay Gateway → Webhook Ingestion [Payment Webhook]; Webhook Ingestion → Redis Distributed Locks [Acquire Lock]; Webhook Ingestion → Double-Entry Ledger [Verified Credit]; Double-Entry Ledger → MSSQL Transaction DB [Write Journal]; Client Web App → Payout Maker-Checker [Withdraw Request]; Payout Maker-Checker → Double-Entry Ledger [Approved Payout].