Unknown error during handshake
See original GitHub issueI setup all the credentials as per the details provided on my daraja API account. I keep on getting the above named error in the console log. I am farely new to Daraja API so any assistance would be highly appreciated. Did I miss something? nothing happens when after I input the phone number and press ‘Request MpesaExpress’
`//TODO :: REPLACE WITH YOUR OWN CREDENTIALS :: THIS IS SANDBOX DEMO daraja = Daraja.with(“[I set my own from daraja api]”, “[same here”, new DarajaListener<AccessToken>() { @Override public void onResult(@NonNull AccessToken accessToken) { Log.i(MPESAExpressActivity.this.getClass().getSimpleName(), accessToken.getAccess_token()); Toast.makeText(MPESAExpressActivity.this, "TOKEN : " + accessToken.getAccess_token(), Toast.LENGTH_SHORT).show(); }
@Override
public void onError(String error) {
Log.e(MPESAExpressActivity.this.getClass().getSimpleName(), error);
}
});`
Set as well:
//TODO :: REPLACE WITH YOUR OWN CREDENTIALS :: THIS IS SANDBOX DEMO LNMExpress lnmExpress = new LNMExpress( "600616", "[set]", //https://developer.safaricom.co.ke/test_credentials TransactionType.CustomerBuyGoodsOnline, // TransactionType.CustomerPayBillOnline <- Apply any of these two "10", "254708374149", "174379", phoneNumber, "http://mycallbackurl.com/checkout.php", "001ABC", "Goods Payment" );
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Yeah, it just stopped working all of a sudden, and I knew I hadn’t touched any of the network classes. I am on break for the rest of the week, so I can take a look at it tomorrow.
EDIT Could we just raise this issue with Safaricom?
This has been sorted by PR #27
It’s already merged into master. The next release should fix this issue. Good work @gilokimu. We might need to do a small patch to fix issues currently being experienced as we continue working on other issues.
To test current state on master and do a release