1 post / 0 new
romoka
Getting "The initiator information is invalid" when using Test Credentials

What am I doing wrong with the initiator information. Yet I am using the exact test credentials provided.
I generate the Initiator Security Password, using the password 12qw

I make the following request:
{
"InitiatorName": "testapi",
"SecurityCredential": "BsttkHo1JROABKT+JbkWgFty3iTctYoI9KhUHrfiGAgksaTGsaVZUOv3kpRkdhiViaIfXQQqeeedGnK5090Z6Tier7HScXF7EQW5zLycwuco0hfaxQw1UUnrbgmA7+z1xr4v+aUUT6EsiAU4NKwgjxy2t1EZzRWl1JzLbJ2nfb5QdMnuW1PGPa2BTnSv4LbXQJ+/YmK529BP/nYYRBNYbalB3zv+2u7UNbGnQ2vQchaYFLwzglmTuwNp3Asn3WJvafB0EklRkUwFyLgf4ykZ08usYxMGWs+q1A0g8bIMjDuODtXFx/AfEptktYFsdRNZ9ZgTl8MI+ZOpRe1kTmnbGw==",
"CommandID": "BusinessPayment",
"Amount": "421",
"PartyA": "600419",
"PartyB": "254708374149",
"Remarks": "B2C Payment Request Remarks",
"QueueTimeOutURL": "http://xx.218.132.xx:8080/transact/mpesa/api/dummylistener",
"ResultURL": "http://xx.218.132.xx:8080/transact/mpesa/api/dummylistener",
"Occassion": "B2C Payment Request Ocassion"
}

I get the success response:
{
"ConversationID": "AG_20180611_000079d6e507a71a4915",
"OriginatorConversationID": "7682-600849-1",
"ResponseCode": "0",
"ResponseDescription": "Accept the service request successfully."
}

Unfortunately, when the response comes in to the specified ResultURL, this is the response I get back:
{
"Result": {
"ResultType": 0,
"ResultCode": 2001,
"ResultDesc": "The initiator information is invalid.",
"OriginatorConversationID": "7682-600849-1",
"ConversationID": "AG_20180611_000079d6e507a71a4915",
"TransactionID": "MFB51H59GR",
"ReferenceData": {
"ReferenceItem": {
"Key": "QueueTimeoutURL",
"Value": "https:\/\/internalsandbox.safaricom.co.ke\/mpesa\/b2cresults\/v1\/submit"
}
}
}
}