Skip to content

Daraja API Mpesa playground B2B, B2C, C2B with Nodejs and Typescript

Notifications You must be signed in to change notification settings

robertkibet/mpesa-node-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

Simple m-pesa typescript playground

  • M-pesa Daraja API

Getting Started

  1. Fork this project and clone it locally
  2. Run yarn install
  3. Create a .env file and fill up with the needed items as highlighted below:

SANDBOX_CREDEDNTIAL_URL=https://sandbox.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials
CONSUMER_KEY=YOUR_DARAJA_CONSUMER_KEY
CONSUMER_SECRET=YOUR_DARAJA_CONSUMER_SECRET
DEVELOPER_AUTH_TOKEN=TOKEN_FROM_OAUTH_PLAYGROUND
LOCALHOST=MACHINE_IP_ADDRESS
PORT=5000

  1. Run yarn dev to get started 🎉 🎉
  2. Play around with the api
Technologies

node, typescript, m-pesa daraja apis

☎️ Talk to me robert@kibet.me

About

Daraja API Mpesa playground B2B, B2C, C2B with Nodejs and Typescript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published