Skip to content

This project is a server-side implementation of the Daraja API by Safaricom, built using NestJS. The Daraja API allows developers to integrate M-Pesa payment services into their applications. This implementation provides a robust and scalable solution for handling M-Pesa transactions, including STK Push. You can use this repository as boilerplate

License

Notifications You must be signed in to change notification settings

Domains18/NodeJsDaraja

Repository files navigation

SERVER IMPLEMENTATION OF DARAJA API

  • This is an implementation of the Daraja API by Safaricom. This is a follow up of the previous implementation of the same API using Express.js. This time round, I have used Nestjs to implement the API. implement the API, adding other features offfered by Safaricom's Daraja API.
  • Typescript support is enabled in this project.

previous implementation of the same API using Express.js can be found in the branch expressjs

Installation

  • Clone the repository
git clone https://github.com/Domains18/NodeJsDaraja.git
  • Install dependencies
pnpm install
  • Create a .env file in the root directory and add the following environment variables
PORT=3000
CONSUMER_KEY=YOUR_CONSUMER_KEY
CONSUMER_SECRET=YOUR_CONSUMER_SECRET
SHORTCODE=YOUR_SHORTCODE
  • Start the server
pnpm start

CONTRIBUTING

  • Fork the repository
  • Create a new branch (feature/bug)
  • Make changes
  • Commit changes
  • Push changes to your branch
  • Create a pull request

LICENSE

AUTHOR

product of NerdsCatapult

About

This project is a server-side implementation of the Daraja API by Safaricom, built using NestJS. The Daraja API allows developers to integrate M-Pesa payment services into their applications. This implementation provides a robust and scalable solution for handling M-Pesa transactions, including STK Push. You can use this repository as boilerplate

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •