Skip to content

This is a backend api service that allows you to make payment using Mpesa stk push

Notifications You must be signed in to change notification settings

Asahel-code/nodejs_daraja_intergration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Mpesa intergration

This is a backend api service that allows you to use Mpesa stkpush to make payments

Dev environment

In development environment you can run on your terminal:

npm run dev

Production environment

In development environment you can run on your terminal:

npm start

Simulate Payment

You can make payment by sending a GET request to http://localhost:8000/api/v1/payment/simulate and pass phoneNumber and amount to get above request as request parameters

Example

http://localhost:8000/api/v1/payment/simulate/254722000000&1

Ensure you put your callback URL on your .env file in order to get your payment status

About

This is a backend api service that allows you to make payment using Mpesa stk push

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published