Skip to content

kamaubrian/safaricom-node-stk-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SafaricomNodeStkPush

A Restful API to Trigger STK Push πŸ’°πŸ’° πŸ€‘πŸ€‘

Sample Request

{
  "amount": "50",
  "accountReference": "test",
  "callBackURL": "http://callbackurl.com/callback",
  "description": "test",
  "phoneNumber": "254718532498"
}       

Using curl

Note: Replace PhoneNumber Field

  curl -X POST "https://safaricom-node-stk.herokuapp.com/api/v1/stkpush/process/" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"amount\": \"50\", \"accountReference\": \"test\", \"callBackURL\": \"https://ticketingrestapi.herokuapp.com/api/v2/callback/\", \"description\": \"test\", \"phoneNumber\": \"254718532419\"}"   

Reference: https://github.com/neshoj/safaricom-daraja-nodejs

Releases

No releases published

Packages

No packages published