All Projects → lykmapipo → tz-mpesa-ussd-push

lykmapipo / tz-mpesa-ussd-push

Licence: MIT License
Vodacom Tanzania USSD Push API Client

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to tz-mpesa-ussd-push

Paymentfont
A sleek webfont featuring your favourite payment methods
Stars: ✭ 1,586 (+8711.11%)
Mutual labels:  money, payment
africastalking-node.js
Official Node.js SDK for Africa's Talking
Stars: ✭ 113 (+527.78%)
Mutual labels:  payment, ussd
Zold
An Experimental Non-Blockchain Cryptocurrency for Fast Micro Payments
Stars: ✭ 183 (+916.67%)
Mutual labels:  money, payment
Ach
ACH implements a reader, writer, and validator for Automated Clearing House (ACH) files. The HTTP server is available in a Docker image and the Go package is available.
Stars: ✭ 210 (+1066.67%)
Mutual labels:  money, payment
angular4-paystack
💵 An angular2+ module for paystack transactions
Stars: ✭ 51 (+183.33%)
Mutual labels:  money, payment
Tic Tac
Client not paid ? This is the solution of your problem
Stars: ✭ 29 (+61.11%)
Mutual labels:  money, payment
terms-dictionary
Simple definitions of terms, acronyms, abbreviations, companies, and projects related to financial services and Moov.
Stars: ✭ 48 (+166.67%)
Mutual labels:  money, payment
Laravel Paystack
💳 📦 💰 Laravel 6, 7 and 8 Package for Paystack
Stars: ✭ 398 (+2111.11%)
Mutual labels:  money, payment
flutter paystack
💳 A robust Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS
Stars: ✭ 146 (+711.11%)
Mutual labels:  money, payment
python-daraja
Python Wrapper for interacting with the MPESA Daraja API. More Features to be implemented
Stars: ✭ 20 (+11.11%)
Mutual labels:  payment, mpesa
php-pesa
Open payment integration toolkit for PHP
Stars: ✭ 26 (+44.44%)
Mutual labels:  tanzania, mpesa
ex pesa
Payment Library For Most Public Payment API's in Kenya and hopefully Africa. Let us get this moneybag
Stars: ✭ 19 (+5.56%)
Mutual labels:  payment, mpesa
pesa-js
Pesa SDK
Stars: ✭ 19 (+5.56%)
Mutual labels:  tanzania, mpesa
FinanceKit
FinanceKit is a Framework for iOS and Mac to build apps working with financial data, like money, currencies, stocks, portfolio, transactions and other concepts.
Stars: ✭ 15 (-16.67%)
Mutual labels:  money, payment
birthday-keeper
一个生日管理APP, UI风格模仿的系统闹钟, 可以添加, 编辑, 删除生日以及本地推送提醒, 项目截图见README.
Stars: ✭ 27 (+50%)
Mutual labels:  push
zarinpal-laravel
Zarinpal payment for Laravel Framework
Stars: ✭ 31 (+72.22%)
Mutual labels:  payment
mpesa-dart
A dart wrapper around mpesa daraja api
Stars: ✭ 19 (+5.56%)
Mutual labels:  mpesa
awesome-ecommerce
Collect and develop Open Source or Free Projects for building ecommerce platform easy and fast and free
Stars: ✭ 39 (+116.67%)
Mutual labels:  payment
woocommerce-otpbank-payment-gateway
WooCommerce Payment Gateway for OTP Bank (Hungary)
Stars: ✭ 20 (+11.11%)
Mutual labels:  payment
AndroidSDK
Paycom Android SDK
Stars: ✭ 22 (+22.22%)
Mutual labels:  payment

tz-mpesa-ussd-push

Build Status Dependencies Status

Vodacom Tanzania USSD Push API Client.

Requirements

Installation

npm install --save @lykmapipo/tz-mpesa-ussd-push

Usage

const { charge, parseHttpBody } = require('@lykmapipo/tz-mpesa-ussd-push');
const app = require('@lykmapipo/express-common');

// charge customer
const options = { msisdn: '255754001001', amount: 1500, reference: 'A5FK3170' };
charge(options, (error, response) => { 
// => { 
// =>  session: ..., transaction: ..., token: ..., 
// =>  reference: ..., status: ..., result: { ... } 
// => }
});

// register webhook to listen for ussd result
app.all('/v1/webhooks/tz/mpesa/ussd-push', parseHttpBody(), (request, response, next) => {
// => { 
// =>  transaction: ..., token: ..., reference: ..., 
// =>  receipt: ..., status: ..., result: { ... }, isSuccessful: true 
// => }
});

Environment

TZ_MPESA_USSD_PUSH_USERNAME=
TZ_MPESA_USSD_PUSH_PASSWORD=
TZ_MPESA_USSD_PUSH_BUSINESS_NAME=
TZ_MPESA_USSD_PUSH_BUSINESS_NUMBER=
TZ_MPESA_USSD_PUSH_CALLBACK_URL=
TZ_MPESA_USSD_PUSH_LOGIN_EVENT_ID=2500
TZ_MPESA_USSD_PUSH_REQUEST_EVENT_ID=40009
TZ_MPESA_USSD_PUSH_REQUEST_COMMAND=CustomerPaybill
TZ_MPESA_USSD_PUSH_BASE_URL=
TZ_MPESA_USSD_PUSH_LOGIN_PATH=
TZ_MPESA_USSD_PUSH_REQUEST_PATH=
TZ_MPESA_USSD_PUSH_CURRENCY=TZS
TZ_MPESA_USSD_PUSH_CONTENT_TYPE=text/xml
TZ_MPESA_USSD_PUSH_ACCEPT=text/xml
TZ_MPESA_USSD_SSL_CA_FILE_PATH=
TZ_MPESA_USSD_SSL_CERT_FILE_PATH=
TZ_MPESA_USSD_SSL_KEY_FILE_PATH=
TZ_MPESA_USSD_SSL_PASSPHRASE=

Test

  • Clone this repository

  • Install all dependencies

npm install
  • Then run test
npm test

Contribute

It will be nice, if you open an issue first so that we can know what is going on, then, fork this repo and push in your ideas. Do not forget to add a bit of test(s) of what value you adding.

Licence

The MIT License (MIT)

Copyright (c) 2019 lykmapipo & Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].