safaricom / mpesa-node-library

M-Pesa Library for Node.js using REST API
Apache License 2.0
160 stars 137 forks source link

accountBalance requires securityCredential and certPath #14

Closed grinono closed 5 years ago

grinono commented 5 years ago

docs inform on a single requirement of providing consumerKey and consumerSecret.

Though for the accountBalance request securityCredential is also a requirement. Where to find this for our Mpesa account?

geofmureithi-zz commented 5 years ago

When you go live, you should be provided with these creds. For Sandbox, please use: https://developer.safaricom.co.ke/test_credentials

grinono commented 5 years ago

is that also the case for the myKey.cert?

DGatere commented 5 years ago

Yes at https://developer.safaricom.co.ke/docs#introduction

You have Sandbox Certificate and Production Certificate provided as links on the left pane

grinono commented 5 years ago

when I login and check api details for the app, i find consumerKey and consumerSecret. But you are telling me that the "securityCredential" can only be found when going live? Not afterwards?