Thanks @Harvey… Unfortunately i have encountered the same error
Regards
I have managed to duplicate your error . I m going to go into the source code and check two things
1.should the auth email be part of the harsh
2.The order of the values in the concatenated string.
Will get back to you soon
I have resolved the error on my end. A few pointers. It is expected that the last key-value pair in your request is the hash. Everything above it is used in generating the hash. In your case the steps would look like this
Step 1
method:ecocash
phone:0771111111
id:xxxx
reference:TEST REF
amount:99.99
returnurl:http://www.google.com/search?q=returnurl
resulturl:http://www.google.com/search?q=resulturl
authemail:someone@sommail.com
status:Message
step 2 concatenate values as a string (note keys are not included)
ecocash0771111111xxxxTEST REF99.99http://www.google.com/search?q=returnurlhttp://www.google.com/search?q=resulturlsomeone@sommail.comMessage
step 3 append integration key
ecocash0771111111xxxxTEST REF99.99http://www.google.com/search?q=returnurlhttp://www.google.com/search?q=resulturlsomeone@sommail.comMessage[intergration key]
step 4 - sha512 hash
Hi there no I have not. I have been trying to figure out a way to share testing info , so far I am looking at Postman’s "share " feature. As a side note why are you not using the SDK’s?
While generating the hash, the order of concatenation of the values matters.
So when generating the hash for initiating mobile money transactions, the order should be:
[Integration ID]TEST REF99.99http://www.google.com/search?q=returnurlhttp://www.google.com/search?q=resulturlsomeone@sommail.comMessageecocash0771111111[Integration Key]
Continuing the discussion from Invalid Hash When Initiating a RemoteTransaction:
Thank you very much @Harvey… Without getting into details i will just say that my hands are tied, project constraints, therefore i can’t use any of the SDK’s.
I will be patiently waiting for your help.
Thanks @lucia. Unfortunately, im still stuck…lol
Hi Mr_D lets give this one more try
Follow this link to import postman collection
https://www.getpostman.com/collections/01be6fa1f4d783aa8c7f
Use this details to create a hash , change merchant id and secret
[merchant id]TEST REF99.99A test ticket transactionhttp://www.google.com/search?q=returnurlhttp://www.google.com/search?q=resulturlMessageecocash0771111111test@test.com[secret key]
@Harvey … Kindly explain what was wrong with my initial implementation. My goal is that i want to submit the request using Ajax post so i might also be haunted by my previous errors. How best can i perform an ajax post? Regards
Thanks very much @Harvey … My code is now working!!! Thank you!!!
It is such an honour seeing @Harvey presenting about Paynow at the 2019 DevFest… Harvey the guy who gets things done!!! Once again, thank you for assisting me solve my problem!!!
@Harvey thanks for your contributions.l have been following the discussion after encountering the same issue.Unfortunately l m stuck here now ,l am not figuring out how to use the information on the link you shared.
@Byro this is a good place to start. Have you used Postman before ?