Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kamaubrian/safaricom-node-stk-rest-api

A Simple Restful API to Trigger STK Push 💰💰 🤑🤑
https://github.com/kamaubrian/safaricom-node-stk-rest-api

daraja nodejs payments safaricom stk stkpush swagger swagger-ui web-payments

Last synced: 21 days ago
JSON representation

A Simple Restful API to Trigger STK Push 💰💰 🤑🤑

Awesome Lists containing this project

README

        

# 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