M-Pesa API Example

For test purpose only. Parameters have been set to demo. Click on the product you want to test. Visit Safaricom Developer site (daraja) for more information.

Developer Site Documentation

{
                    "requestId":"0695-4d85-a052-ab6901021b9029611",
                    "errorCode": "500.003.1001",
                    "errorMessage": "Service is currently unreachable. Please try again later."
                }
            
Array
(
    [OriginatorCoversationID] => f028-4624-8ed1-f2c0d838a76535056
    [ResponseCode] => 0
    [ResponseDescription] => Accept the service request successfully.
)

Safaricom M-Pesa Example. Sample code by Wits Technologies