Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
newtonmunene99 committed May 17, 2019
1 parent e590ceb commit d682f9f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d682f9f

Please sign in to comment.