mpesalnmp

1.0.0 • Public • Published

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)


Readme

Keywords

Package Sidebar

Install

npm i mpesalnmp

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

6.69 kB

Total Files

6

Last publish

Collaborators

  • albertagoya