1.0.0 • Published 5 years ago

mpesalnmp v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

What is This?

This is a Lipa Na Mpesa Api Integration Module

Installation

npm i mpesalnmp --save yarn add mpesalnmp

Then...

import {LNMPOnline} from 'mpesalnmp'

let importantKeys=
    {
        ConsumerKey:'I7qtM5EaaF50VJr4Rn3BJQ7vHAwnsdpx', // Refer to MPESA API Documentation
        ConsumerSecret:'UWfpwANAfGMMHL2v', // Refer to mpesa API Documentation
        BusinessShortCode: 174379, //The Paybill where money is being sent to
        TransactionType: "CustomerPayBillOnline", //the type of the transaction
        Amount: 2000,
        PartyA: 254791836987, //The Phone Number that Initializes the transaction
        PartyB: 174379, //The Paybill where money is being sent to
        PhoneNumber: 254791836987, // Same to Part A
        CallBackURL: "https://134.209.148.107/lnmp", // The CallBack  Url where Requests will be made to
        AccountReference: "WIFI Money", // The Purpose of the Money
        TransactionDesc: " Wi Fi money"

    }




LNMPOnline(importantKeys)