PocketPay – Digital Wallet
A digital wallet with round-up savings and security that is locked by default
Platform
Android 8.0+
Native Kotlin, API 26
Encryption
AES-256
SQLCipher + Keystore
Architecture
Clean + MVI
Unidirectional data flow
Testing
Robolectric
Unit and instrumented tests
00 — Overview
Overview
PocketPay is a native Android wallet prototype that explores how a modern fintech app handles payments, savings, and security entirely on-device. Users pay with QRIS, split money into pockets, and save automatically through round-ups, while every transaction is recorded with a shareable receipt and a PDF statement. Funds are simulated — it is a portfolio project, not a registered QRIS issuer.
01 — The Problem
The Problem
Wallet apps handle money, so correctness and security matter more than visuals: a payment must never half-complete, a retry must never charge twice, and a stolen phone must not expose the data. PocketPay tackles these problems with atomic database transactions, idempotency keys, an encrypted database, and a layered PIN and biometric lock.
02 — Tech Stack
Tools & Technologies
- Kotlin & Jetpack Compose
- UIMaterial 3 interface with an emerald theme, light/dark modes, and Indonesian + English localization.
- Clean Architecture + MVI
- ArchitectureUnidirectional data flow with separate data, domain, and presentation layers.
- Room + SQLCipher
- DatabaseAES-256 encrypted database; the passphrase is wrapped by an Android Keystore key.
- Dagger Hilt, Coroutines & Flow
- DI & AsyncDependency injection and reactive state with StateFlow.
- CameraX & ML Kit
- QR ScanningLive camera and gallery scanning with QRIS parsing and CRC16 validation.
- Biometric API & Keystore
- SecurityBiometricPrompt with a CryptoObject, PBKDF2-hashed PIN, and FLAG_SECURE.
03 — Key Features
Key Features
- 01
QRIS Payments with Round-Up Savings
Pay by scanning a QRIS code; the amount rounds up to the next Rp 5,000 and the difference goes to the Spare Change Jar.
- 02
Cascading Payment Routing
Choose any pocket as the source; if it falls short, the rest is drawn from the main account in one atomic transaction.
- 03
Savings Pockets
Flexible pockets earn 3.5% p.a. and locked deposits earn 6% p.a., with goal progress and early withdrawal blocked until maturity.
- 04
Locked by Default
6-digit PIN with weak PIN rejection, a 30-second lockout after 5 wrong tries, auto-lock after 60 seconds, and crypto-bound biometrics.
- 05
Statistics
Weekly and monthly income vs. expense charts with recent expenses; refunds and internal moves are excluded.
- 06
Receipts, Refunds & E-Statements
Shareable receipts, one refund per payment within 24 hours, idempotency keys against duplicates, and PDF statements.
04 — Gallery