Systems Engineering
Open Switchn — Local Payment Research Client
An unofficial TypeScript/Node.js CLI and local dashboard for researching cross-network mobile money workflows in Cameroon, with explicit confirmation and one-shot submission safeguards.
Problem
Understand the authentication, review and payment-request lifecycle of a mobile money application without confusing a successful API response or provider prompt with completed recipient settlement.
Objectives
Document observed application contracts and expose them through a local research client. Keep authentication, review, explicit user confirmation and bounded status monitoring separate. Use only accounts, numbers and services the operator is authorized to access.
Architecture
The CLI and loopback-only dashboard share typed models, session handling and a fixed-origin API client. A workflow layer binds short-lived review tickets to the active session and records submission attempts to prevent replay.
CLI / local dashboard
|
Validation + session lifecycle
|
Review ticket + explicit confirmation
|
Fixed-origin API client
|
Identity and payment services
This is an unofficial research client, not an operator settlement backend or a public payment service.
Technology choices
TypeScript and Node.js support shared CLI/server logic. Zod validates schemas and inputs; decimal.js supports monetary calculations. Commander and Inquirer provide command handling and interactive prompts. The dashboard uses local browser assets without storing bearer tokens in browser storage.
Implementation
- CLI and local dashboard for authentication, transfer review and bounded status monitoring.
- Private local session and challenge storage, with sanitized diagnostics.
- Five-minute, session-bound review tickets and explicit confirmation before submission.
- A separate payment permission gate and persistent one-shot attempt markers.
- Loopback HTTP serving with Host/Origin checks and CSRF protection.
- Isolated offline tests for API contracts, authentication, configuration, workflows and the web interface.
Network actions use real upstream services; there is no runtime simulator or success-shaped fallback. This portfolio does not run the client or initiate transactions.
Technical challenges
Reconstructing contracts from application analysis, separating identity tokens from application sessions, validating changing provider routes, preserving monetary precision and handling ambiguous transaction outcomes without automatic retries. Android-specific authentication requirements are not bypassed.
Results
The public repository includes CLI/dashboard source, lifecycle documentation and isolated offline tests. This portfolio entry is based on documentation and source inspection; no live payment testing was performed for this entry.
Recipient settlement, final live fees and general production compatibility remain unverified. A USSD prompt or collection acknowledgement alone does not establish a completed transfer. This is a prototype, not a production payment product.
Lessons learned
Keep authentication, review, initiation and settlement as distinct states. Bind confirmations to the reviewed session and route, fail explicitly on uncertain outcomes, and prevent accidental transaction replay.
Independent research is not affiliation or endorsement by Switchn, MTN or Orange. Public source availability does not grant permission to access third-party services; authorized use and provider terms still apply.
LET'S BUILD SOMETHING THAT MATTERS