/jiru

Simple API Micro-framework to track MPESA payments for POS integration.

Primary LanguagePHP

Mpesa Payments Tracker

This is a micoservice (API backend service) for tracking mpesa payments

Installation

Clone this repo or download an archive of the codebase and extract it in your server
Remember to set the document root as /public

Install Dependencies

Run the following command

composer install

Optimize Dependencies

Run the following command

composer dump-autoload -o

Configuration

Rename .env.example to .env and configure accordingly

Database

Once you have set your database credentilas, run the following command

php artisan migrate

Endpoints

The following endpoints are available POST /validate POST /confirm POST /results POST /register POST /timeout POST /reconcile POST /reverse POST /status

Confirmation & Validation URLs

POST /validate POST /confirm

Callback URL

POST /reconcile