Contributions are always welcome especially adding the available templates.
Run npm install then node . to run the project locally.
Create a folder with the format mpesa-<framework>-<api>. For example mpesa-rails-c2b or mpesa-django-express. Frameworks and APIs are listed inside utils/contents.ts file.
Your API should have the following endpoints:
/api/example/stk- APOSTendpoint that Handles the STK push and takes inphoneandamountin the request body./api/example/callback- APOSTendpoint that acts as a hook to listen to callbacks from the Daraja platform.- Make sure to add a
README.mdfile with instructions on how to setup the project once generated.