From d682f9f91b393ba064a28993216da6eae194a65b Mon Sep 17 00:00:00 2001 From: Newton Munene Date: Fri, 17 May 2019 22:05:35 +0300 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e784f08..f1bb057 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,14 @@ You Will need a few things from Safaricom before development. ## Getting Started ```javascript -// import package -import { mpesa } from "mpesa-api"; +// import package. +import { Mpesa } from "mpesa-api"; + //OR -const mpesa = require("mpesa-api").mpesa; +const Mpesa = require("mpesa-api").Mpesa; // create a new instance of the api -const Mpesa = new mpesa(credentials, environment); +const mpesa = new Mpesa(credentials, environment); ``` A moment to explain the above. `credentials` should be an object containing key,secret,initiator_password and certificatepath as the properties.