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

M-Pesa API Example

This solution is for test purposes only. API parameters have been set to demo and transacted funds should be reversed automatically.

IMPORTANT

  1. Use the form below to set the test email and phone number. NB: Phone MUST be an M-Pesa registered number.
  2. Click on the product you want to test from the left menu.

Safaricom M-Pesa Example. Sample code by Wits Technologies