{"repo":"kn9ts/project-mulla","free":true,"listed":false,"github":"https://github.com/kn9ts/project-mulla","clone":"git clone https://github.com/kn9ts/project-mulla.git","description":"Talk to MPESA API via a REST API. Bringing the MPESA G2 API to the 21st century. --","language":"JavaScript","stars":298,"topics":["sag","soap","mpesa-api","mpesa","safaricom","payments","mediator","xml","mobile-money","online-payments"],"license":"LGPL-3.0","category":"auth-billing-email","readme_excerpt":"What MPESA G2 API should have been in the 21st century. PLEASE NOTE: Mediates only C2B portion for now. Project Mulla is a MPESA API RESTful mediator . It lets you make familiar HTTP REST requests, transforming your requests to the fiddling dreaded SOAP/XML requests that the Safaricom MPESA G2 API only understands. It then communicates with the MPESA API gateway, transforming all SOAP responses from the SAG to RESTful JSON responses that you then consume effortlessly. In short, it’ll deal with all of the SOAP shenanigans while you REST. Everybody wins! The aim of Project Mulla is to create a REST API middleman that interfaces with the MPESA G2 API for you. Important: Update 23-06-2017 When one now pings the endpoint /payment/request it initializes the payment and on response confirms the payment by also hitting the endpoint payment/confirm automatically This means you no longer have to make a second call to Project Mulla to confirm the payment thus hitting up the user's phone with the USSD prompt. One call to payment/request should handle this automatically. Instructions Request Payment This initial step is to tell the SAG to initialise a payment transaction for you. After initialisation, you then make another request to the SAG as a confirmation signaling the SAG to process the payment request. Assuming Project Mulla is now your mediator, you'd now make a POST request to Project Mulla . Not the Safaricom Access Gateway . See below how you'd make this initial request: Initiat","default_branch":null,"files":null,"tree":[],"storefront":"/r/kn9ts","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kn9ts/project-mulla/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}