Open NjiruClinton opened 1 year ago
How can i login mpesa app if my device is rooted
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: @.***>
I get this response error when I do an stk push using this package
"express": "^4.18.2"
node v14.18.1
and"mpesa-node": "^0.1.3"
here's my code:
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();