Neem
Embedded Financial Infrastructure & Banking-as-a-Service Platform
At a Glance Proof
Delivered mission-critical embedded banking, collections, and bulk disbursement modules for a licensed financial infrastructure platform, facilitating seamless money movement, automated reconciliation, and earned wage access.
Built Next.js and Tailwind CSS merchant control panels, native app modules in Swift and Kotlin, KYC customer onboarding state machines, backend transaction processing endpoints in Node.js, and secure role-based ledger inspection tables with automated pagination.
Next.js & React for dashboard UX · Swift (iOS) & Kotlin (Android) native mobile app modules · Tailwind CSS for modular design tokens · Node.js & Express for financial APIs · Double-entry ledger store · Banking partner rails
Project Overview
Emerging market enterprises struggle to incorporate financial services into their customer journeys due to regulatory hurdles, legacy bank APIs, and complex compliance frameworks. Neem bridges this gap by providing an embedded financial infrastructure layer that enables platforms to offer digital accounts, cards, payments, and credit natively.
Target Users: Merchant business owners, enterprise finance teams, compliance officers, and platform end-users utilizing embedded wallets.
- ▹Financial accounting requires absolute zero-loss ledger consistency and idempotent transaction processing.
- ▹Identity verification (KYC/AML) must comply with State Bank of Pakistan (SBP) regulatory requirements while maintaining low friction.
- ▹High transaction volumes during peak shopping or payroll cycles must not exceed database connection limits or degrade latency.
Platform Capabilities & Feature Architecture
Comprehensive architectural breakdown covering user-facing controls, background services, and automated workflows.
Embedded Banking-as-a-Service (BaaS) & White-Labeled Wallets
Empowering digital businesses to embed banking capabilities natively without a banking license
- ▹Virtual Account Creation: Generates unique digital bank accounts for end-users and merchants without requiring direct bank branch visits.
- ▹White-Labeled Wallet Infrastructure: Allows e-commerce, agriculture, and logistics apps to offer custom-branded digital wallets for instant payments and claims.
- ▹Interbank Transfers (IBFT / Raast): Instant funds movement across all Pakistani banks and mobile wallets via central financial switches.
- ▹Programmatic Balance & Hold Management: Automated funds reservation and settlement release for escrow, lending, and multi-party workflows.
Payment Rails: Collections & High-Volume Bulk Payouts
Full-stack money movement rails for businesses, vendors, and gig platforms
- ▹Multi-Method Collections: Accept payments via credit/debit cards, bank direct debit, digital wallets, and Raast instant QR codes.
- ▹Automated Bulk Disbursements: High-throughput payout engine allowing businesses to disburse salaries, vendor invoices, and gig earnings in seconds.
- ▹No-Code Payment Button & Plugins: Drop-in embeddable payment buttons and Shopify plugins for rapid merchant e-commerce checkout integration.
- ▹SoftPOS Capability: Enables merchant Android smartphones to accept contactless card payments without expensive dedicated hardware terminals.
Real-Time Double-Entry Ledger & Reconciliation
Bulletproof accounting integrity with automated bank settlement matching
- ▹Immutable Double-Entry Bookkeeping: Every financial event creates paired, auditable debit and credit entries guaranteeing balance integrity.
- ▹Automated Settlement Reconciliation: Daily matching of gateway collections against banking partner settlement reports with zero discrepancies.
- ▹Merchant Analytics Dashboard: Real-time visual tracking of transaction velocity, processing fees, pending settlements, and chargebacks.
- ▹Server-Side Cursor Pagination: High-performance ledger inspection supporting millions of historical transaction rows without UI degradation.
Neem Paymenow: Shariah-Compliant Earned Wage Access (EWA)
Ethical, debt-free salary streaming empowering employees with accrued earnings
- ▹Accrued Wage Calculation: Automatically tracks verified days worked and calculates available earned wages in real time.
- ▹Instant Salary Drawdown: Employees can withdraw a portion of their earned wages directly into their bank account or wallet before month-end.
- ▹Shariah-Compliant Structure: Zero loan interest; transparent fixed micro-fee model structured according to Islamic finance principles.
- ▹Payroll Integration Sync: Automatic deduction of drawn amounts from standard monthly corporate payroll runs.
Automated Multi-Tier KYC & Mastercard Issuance
Frictionless identity verification and payment card provisioning
- ▹NADRA CNIC Verification: Real-time government identity verification checking citizen records and biometric markers.
- ▹Multi-Tier Verification Workflows: Tiered onboarding transaction limits adapting to user document submission (CNIC, proof of income, live selfie).
- ▹Mastercard Debit Card Issuance: Provisioning of virtual debit cards for instant online checkout and physical cards for ATM/POS use.
- ▹Card Security Controls: In-app PIN management, spend limit enforcement, and instant card freezing/unfreezing.
Product Flow & System Context
Merchant web applications and enterprise platforms interact with Neem's API Gateway. Requests are authenticated, scoped to specific merchant tenants, and processed by core microservices handling wallets, payments, and KYC. Every balance change triggers double-entry ledger commits and partner bank settlement synchronization.
Tech Stack and Runtime Architecture
Merchant Dashboard & Web Experience
Fast, responsive web portals for transaction monitoring, API key provisioning, and KYC submissions.
Native Mobile Apps & Embedded SDKs
Native mobile wallet and payment SDK modules embedded into partner consumer applications.
Financial API Gateway
Enforces tenant isolation, idempotency keys, rate limiting, and request signature verification.
Payment & BaaS Engine
Processes collection flows, bulk payout batches, and wallet balance adjustments.
Double-Entry Ledger Store
Stores auditable transaction entries, account balances, and merchant settlement logs.
Banking & Card Bridges
Communicates directly with Meezan Bank, 1LINK switch, and Mastercard issuance networks.
Critical Execution Flow
Merchant Payment Collection & Instant Ledger Settlement
How an online payment is captured, validated, and credited to the merchant's digital wallet in real time.
Checkout Initialization & Idempotency Key
Customer clicks checkout; merchant sends request with a unique idempotency key to prevent duplicate charging.
Payment Routing & Bank Authorization
Gateway verifies merchant tenant and routes charge through partner banking rails (Meezan/1LINK) for instant debit authorization.
Double-Entry Ledger Commit
Upon payment confirmation, ledger service executes an atomic write: debiting payment gateway clearing account and crediting merchant digital wallet account.
Real-time Dashboard Reflection & Webhook
Merchant Next.js dashboard updates balances immediately, and an asynchronous webhook fires to the merchant server with transaction proof.
Architectural Decisions & Trade-Offs
| Decision | Alternatives Considered | Why Chosen | Cost / Risk Accepted | Quality Attribute |
|---|---|---|---|---|
| Server-side cursor pagination for transaction ledgers | Client-side slicing, traditional offset/limit SQL pagination | Guarantees stable O(1) query performance and prevents skipped/duplicated records even when high-frequency transactions are continually appended to the ledger. | Requires cursor state management across pages rather than jumping directly to arbitrary page numbers. | Performance & Scalability |
| Tailwind CSS with centralized design token architecture | Ad-hoc component styling, heavy third-party UI component libraries | Maintains absolute visual consistency across financial dashboards while producing an ultra-lightweight client CSS bundle with fast loading times. | Required upfront effort to establish design tokens for badges, status chips, and tabular layouts. | Maintainability & Performance |
| Idempotency key enforcement on all payment and disbursement endpoints | Optimistic frontend debouncing without backend enforcement | Completely eliminates double-charge or double-payout anomalies caused by network retries or aggressive user clicking. | Requires caching transaction idempotency tokens in Redis with TTL expiration. | Financial Consistency & Reliability |
What We Delivered & Future Roadmap
- ✓Merchant control panel for real-time payment monitoring, bulk payouts, and wallet balance management.
- ✓Multi-step KYC customer verification flow integrated with national identity databases.
- ✓High-performance transaction ledger tables with live filtering and cursor-based pagination.
- ✓Neem Paymenow Earned Wage Access module for debt-free employee salary streaming.
- ✓Mastercard card management dashboard supporting virtual card generation and status locking.
- →WebSocket push integration for sub-second transaction sound and visual notifications.
- →Automated PDF and Excel tax statement generation for quarterly reconciliation.
- →Granular team permission levels (Maker-Checker workflow) for bulk payout approvals.
Explore Other Flagship Case Studies
SentinelKids
Parent-Child Digital Safety & Device Management Platform
Delivered a resilient parent-child monitoring infrastructure processing high-frequency device telemetry with sub-200ms alert propagation, real-time web filtering, instant app blocking, and multi-device synchronization across zero-rollback releases.
Sehat Kahani
Pakistan's Leading Telemedicine & Digital Healthcare Platform
Built resilient, high-volume telemedicine pipelines serving thousands of daily consultations across rural clinics, urban mobile users, and major corporate healthcare partners with sub-60-second physician match times.
Interested in how this project approach can help your product?
I can walk you through the stack choices, delivery process, and results.