Skip to content

A node library to improve the DX of interacting with Safaricom`s daraja APIS

License

Notifications You must be signed in to change notification settings

amosmachora/daraja-kit

Repository files navigation

Daraja Kit

Improving the Developer Experience of using the Safaricom daraja API.

Read the docs at https://daraja-kit.amosmachora.com/

About

Daraja Kit is a typesafe Javascript library designed to simplify interactions with the Safaricom Daraja API. This library is suitable for both Node.js and React environments, allowing developers to seamlessly integrate M-Pesa payments into their applications.

Benefits

  • Way simpler API over using daraja on your own.
  • Open source!
  • Slow integration. You don`t have to hot swap this library. You can easily integrate it to your app.
  • More Util Functions. If you need to generate passwords if you have decided to slowly integrate the app offers helper functions to help you move along nicely. e.g generateTimestamp and generatePassword.

Compatibility

Daraja Kit is compatible with Node.js and React environments. It provides a simple interface for initiating M-Pesa transactions using the Safaricom Daraja API.

Some APIs are exclusively for Node Environments and some are just React Components so are only used in react.

Stack

docs

Nextra

Main library

typescript react

Package manager

pnpm

Versioning

Changesets

License

This library is licensed under the MIT License. Feel free to contribute or open issues on the GitHub repository. More APIs and components coming. Watch this repo for alerts.