OfflinePay
“Smart Money for Feature Phones.”
The problem OfflinePay solves
Digital payment systems today rely heavily on smartphones and continuous internet access. This makes them inaccessible to a large population that still uses feature phones or lives in areas with poor or unstable network connectivity. As a result, many people are forced to depend on cash, which is unsafe, untraceable, and unreliable during emergencies.
There is currently no simple and reliable digital payment solution that works offline on basic phones, creating a major gap in financial inclusion.
- Users
Feature phone users:
Individuals without smartphones who need to send and receive money digitally without internet access.
Small merchants & vendors:
Kirana stores, street vendors, and rural shops that want to accept digital payments without POS machines or mobile apps.
Rural & low-connectivity populations:
Users living in areas with poor or unreliable network coverage.
Daily wage workers & informal sector:
People who rely on quick, simple payments and often operate outside the formal banking ecosystem.
Emergency & disaster-affected users:
Individuals who need to make payments when internet-based systems are unavailable.
Challenges we ran into
- USSD Session Flow Breaking
Problem:
At first, users could access menu options (1, 2, 3) without dialing *123#, and sessions were expiring randomly.
Solution:
I introduced a session state machine in the backend using MongoDB.
Each user now has a UssdSession with steps like:
MENU
RECEIVER
AMOUNT
PIN
Only users who start with *123# are allowed to continue. This fixed invalid flows and made the system behave like a real telecom USSD service.
- Session Timeout Causing Crashes
Problem:
Users were stuck or thrown out mid-transaction if they paused for a few seconds.
Solution:
I added a lastUpdated timestamp to each session and implemented a timeout check.
If a user is inactive for too long, the session is safely cleared and restarted.
