Simple m-pesa typescript playground
- M-pesa Daraja API
- Fork this project and clone it locally
- Run
yarn install
- 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
- Run
yarn dev
to get started 🎉 🎉 - Play around with the api
node, typescript, m-pesa daraja apis
☎️ Talk to me [email protected]