Building FinTech & Digital Wallets in Bangladesh: Architecture
“Imagine launching a digital wallet or lending app in Bangladesh. A user transfers ৳500 while riding in a CNG with a patchy mobile connection. The screen freezes, the user double-taps 'Send', and because your database didn't lock the transaction row, their balance drops to -৳500 and their friend gets credited twice. You just paid ৳500 out of your own pocket to learn why financial software is fundamentally different from a regular web application.”
Bangladesh's digital financial ecosystem is experiencing a massive boom—from micro-lending and earned wage access (EWA) to digital freelancer wallets and corporate expense cards. But building financial technology is unforgiving: one math glitch, one concurrency race condition, or one security loophole can destroy a startup overnight.
Through our custom FinTech software development practice, Vivago Technologies builds bank-grade, auditable financial platforms. Here are the three fundamental architectural rules every FinTech product in Bangladesh must follow.
1. Never Store Balances as a Simple Number (The Double-Entry Rule)
In a standard e-commerce store, updating inventory is as simple as stock = stock - 1. In FinTech, doing that with money is suicidal.
Append-Only Double-Entry Ledgers
Real financial systems never overwrite an existing balance column. Every single Taka moved must create two balanced journal entries: a Debit to one account and a Credit to another. If a user tops up ৳1,000, your cash-in-transit asset account debits ৳1,000 and the user's wallet liability credits ৳1,000.
Row-Level Database Locking
When concurrent requests arrive simultaneously (like a user tapping a button twice or an incoming webhook hitting the database at the exact same millisecond), the system locks the specific transaction row until the first calculation finishes, completely eliminating negative balances and double debits.
2. Automating e-KYC: Porichoy & Liveness Verification
To partner with commercial banks or operate under Bangladesh Bank compliance guidelines, your customer verification pipeline must be seamless yet rock-solid:
NID OCR & Porichoy API
Extract National ID numbers and date of birth instantly from camera photos, verifying them directly against official Election Commission records via Porichoy.
Facial Liveness Check
Passive mobile camera liveness detection prevents bad actors from creating fraudulent accounts using printed photos or stolen ID cards.
AML Velocity Rules
Automated alerts flag rapid pass-through deposits and unusual transaction bursts, protecting your platform from anti-money laundering penalties.
3. Virtual Cards & Just-In-Time (JIT) Authorization
Can a tech startup in Bangladesh issue virtual Visa or Mastercard cards? Yes, by partnering with a licensed commercial bank or BIN sponsor.
Technically, the bank holds the card license, while your software acts as the Program Manager. When your customer pays online with their virtual card, Visa sends a real-time webhook to your server within 800 milliseconds. Your backend checks their ledger balance, approves the transaction, and debits their wallet—allowing Bangladeshi freelancers and corporate teams to pay for Google/Facebook ads and SaaS tools safely.
Build Auditable Financial Systems That Scale
Whether you are building a digital wallet, a micro-credit platform, or multi-tenant SaaS billing, our engineers design bulletproof financial architectures ready for institutional compliance.
Related FinTech Engineering Guides:
Frequently Asked Questions
Where must financial transactional data be hosted in Bangladesh?
Under Bangladesh Bank ICT guidelines, primary customer financial records and core transaction ledgers should be stored within local data centers inside Bangladeshi borders, with encrypted cloud backups.
How do you test a double-entry ledger before handling real money?
We run high-concurrency automated stress tests simulating 10,000 simultaneous transfers, network timeouts, and concurrent withdrawals to mathematically prove that total debits equal total credits without overdraft race conditions.