← Back to Selected Work
Case StudyProprietary details are hidden

Neem

Embedded Financial Infrastructure & Banking-as-a-Service Platform

At a Glance Proof

Role:Full Stack Developer · Zetsol Technologies
Timeline:Dec 2023 to Jan 2026
Team Context:Core fintech squad: mobile engineers (Swift, Kotlin), payment systems engineers, compliance officers, frontend architects (Next.js), and banking partners
Current Status:Live in production
Outcome:

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.

What I Owned:

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.

Tech Stack:

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

Section 01

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.

Key Constraints:
  • ▹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.
Explicitly Out of Scope:Direct central bank fiat minting and physical cash transit operations.
Section 02

Platform Capabilities & Feature Architecture

Comprehensive architectural breakdown covering user-facing controls, background services, and automated workflows.

BaaS & Wallets01

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 Rails02

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.
Financial Ledger03

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.
Earned Wage Access04

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.
KYC & Cards05

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.
Section 03

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.

Merchant Platforms & Apps [Next.js, Swift, Kotlin] ──(HTTPS/REST)──> Neem API Gateway [Tenant Auth] ──> Payment & BaaS Core ──> Double-Entry Ledger DB ──> Banking Switches [1LINK / Meezan / Mastercard]
Multi-tenant architecture isolating client records while routing financial instructions through licensed banking partner networks.
Section 04

Tech Stack and Runtime Architecture

Merchant Dashboard & Web Experience

Fast, responsive web portals for transaction monitoring, API key provisioning, and KYC submissions.

Next.js, React, Tailwind CSS

Native Mobile Apps & Embedded SDKs

Native mobile wallet and payment SDK modules embedded into partner consumer applications.

Swift (iOS), Kotlin (Android)

Financial API Gateway

Enforces tenant isolation, idempotency keys, rate limiting, and request signature verification.

Node.js, Express, TypeScript

Payment & BaaS Engine

Processes collection flows, bulk payout batches, and wallet balance adjustments.

Node.js Microservices

Double-Entry Ledger Store

Stores auditable transaction entries, account balances, and merchant settlement logs.

Multi-Tenant Financial Cluster

Banking & Card Bridges

Communicates directly with Meezan Bank, 1LINK switch, and Mastercard issuance networks.

REST Webhooks, ISO 8583 Adapters
Section 05

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.

01

Checkout Initialization & Idempotency Key

Customer clicks checkout; merchant sends request with a unique idempotency key to prevent duplicate charging.

02

Payment Routing & Bank Authorization

Gateway verifies merchant tenant and routes charge through partner banking rails (Meezan/1LINK) for instant debit authorization.

03

Double-Entry Ledger Commit

Upon payment confirmation, ledger service executes an atomic write: debiting payment gateway clearing account and crediting merchant digital wallet account.

04

Real-time Dashboard Reflection & Webhook

Merchant Next.js dashboard updates balances immediately, and an asynchronous webhook fires to the merchant server with transaction proof.

Section 06

Architectural Decisions & Trade-Offs

DecisionAlternatives ConsideredWhy ChosenCost / Risk AcceptedQuality Attribute
Server-side cursor pagination for transaction ledgersClient-side slicing, traditional offset/limit SQL paginationGuarantees 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 architectureAd-hoc component styling, heavy third-party UI component librariesMaintains 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 endpointsOptimistic frontend debouncing without backend enforcementCompletely 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
Section 07

What We Delivered & Future Roadmap

What Shipped
  • ✓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.
What I Would Improve Next
  • →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.
More Architectures

Explore Other Flagship Case Studies

Flagship Case Study

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.

Node.js & Express.js backend services Read Case Study →
Flagship Case Study

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.

Angular clinical management portals Read Case Study →

Interested in how this project approach can help your product?

I can walk you through the stack choices, delivery process, and results.