safaricom / mpesa-node-library

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

Wrong Credentials error #47

Open NjiruClinton opened 1 year ago

NjiruClinton commented 1 year ago

I get this response error when I do an stk push using this package

const testMSISDN = "254720003332" const amount = 100 const callBackURL = "http://arbaaz.herokuapp.com/log.txt" const accountRef = "CLINTON" const transactionDesc = "Test-CLINTON" const transactionType = "CustomerPayBillOnline" const shortCode = 174379 const passKey ="MTc0Mzc5YmZiMjc5ZjlhYTliZGJjZjE1OGU5N2RkNzFhNDY3Y2QyZTBjODkzMDU5YjEwZjc4ZTZiNzJhZGExZWQyYzkxOTIwMTkxMjEzMTA1NzEz"

await mpesaApi.lipaNaMpesaOnline( testMSISDN, amount, callBackURL, accountRef, transactionDesc, transactionType, shortCode, passKey ) .then((result) => { console.log("result here.. ", result); }) .catch((err) => { console.log("error here.. ", err); })

}

lnm();



@geofmureithi-zz  @Beliot  @DGatere  @jeffnyauke 
WAMBUGUS commented 1 year ago

How can i login mpesa app if my device is rooted

NjiruClinton commented 1 year ago

if you've rooted your device using magisk, it gives you an option to restrict apps from detecting root

On Fri, Jan 6, 2023 at 3:53 PM WAMBUGUS @.***> wrote:

How can i login mpesa app if my device is rooted

— Reply to this email directly, view it on GitHub https://github.com/safaricom/mpesa-node-library/issues/47#issuecomment-1373584128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQEZUE4STTDYKLPHQHCD64LWRAIVBANCNFSM6AAAAAATCSOEUA . You are receiving this because you authored the thread.Message ID: @.***>