Back to Projects

MPESA / PayHero Integration

1.5 months Production

Overview

Mobile money payments are critical in East Africa, but integrating M-PESA STK pushes with external payment aggregators like PayHero often presents security and callback challenges.

Problem

Inconsistent callback delivery, network delays, and unhandled payment states led to lost transaction records and manual intervention.

Solution

Engineered an idempotent REST API gateway in Django to manage payment callbacks, automated reconciliations, and secure STK pushes with real-time status webhooks.

Key Features

  • Instant M-PESA STK Push trigger
  • Automated transaction reconciliation
  • Secure signature verification
  • Real-time status webhooks and retry logic

Technologies

PythonDjangoPaystackM-PesaREST APIs