CarePay

CarePay is a Nigerian healthcare payment platform that enables patients to seamlessly pay for hospital services through dedicated virtual bank accounts, while giving hospitals real-time visibility and automated reconciliation of all collections powered by the Nomba payment infrastructure

Technologies Used

Python, FastAPI, Celery, Nomba, HashiCorp Vault, PostgreSQL

The Goal:

CarePay digitises healthcare payments in Nigeria, replacing fragmented cash-based processes with automated, transparent billing. Patients pay by bank transfer through virtual accounts powered by Nomba, linked to their medical records.

- Automatically detects payments and matches them to invoices.

- Updates balances in real time and flags discrepancies for reconciliation.

- Reduces cash handling, manual receipts, and bookkeeping for hospitals.

1

The Challenge:

HashiCorp Vault Implementation:

* Setting up HashiCorp Vault on a production server.

* Configuring AppRole authentication.

* Configuring Vault Agent as a systemd service.

* Implementing dynamic secret templates for auto-rendering environment variables to disk.

Hospital Credential Management System:

* Careful design decisions for data storage (Vault vs. Redis vs. Postgres).

* Ensuring sensitive Nomba API keys never touched the database.

* Maintaining fast token refresh for real-time use.

Dual-Ledger Reconciliation Engine:

* Continuously cross-referencing CarePay's internal transaction records against Nomba's history.

* Handling discrepancies and auto-resolving stale payments.

* Building a fault-tolerant background pipeline for reliable operation without human intervention.

2

The Result

My team and I successfully built the end-to-end application, from integrating Nomba into the backend for the creation of a virtual
account, payment processing, and patient records management, patient records export, admin insights and many more.

3

Other Projects

Create a free website with Framer, the website builder loved by startups, designers and agencies.