-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test STK Push Failed HttpCode:"500" #1
Comments
Check you callback url, it should be secured (https) |
Hi Felix, I have tried to remove the s from the http url still the error code is the same. Though I am using credentials from my live Buy_Goods in Production. |
I have uploaded the stkHandler to my site. It is https. {"success":true,"paid":true,"message":"Payment successful","amount":null,"txID":null,"balance":null,"date":null,"number":null,"merchantID":null,"checkoutID":null,"resultCode":null,"resultDesc":null} |
Hello, I have not tested the code in a production environment.
|
Hi Felix, Waiting for WiFi to connect... connected After changing the Buy_Code to Store Number the stk push came though then followed by an SMS from Safaricom as below. Failed. M-PESA cannot complete this operation. The parameter value is incorrect. No till is found. for CustomerPayMerchant. For more information call or SMS customer services on 100. Kindly see if you are passing this CustomerPayMerchant to the API {"MerchantRequestID":"19978-16256822-1","CheckoutRequestID":"ws_CO_30082022171926235716594139","ResponseCode":"0","ResponseDescription":"Success.Requestacceptedforprocessing","CustomerMessage":"Success.Requestacceptedforprocessing","Result":"success","HttpCode":"200"} |
Okay, noted. I will implement that |
Thank you Felix.
…On Tue, Aug 30, 2022, 18:27 Felix Biego ***@***.***> wrote:
Okay, noted. I will implement that
—
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5JGZ5WSKGLMQJRT5HBLUDV3YR43ANCNFSM6AAAAAAQAJNKFI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Felix,
Did you manage to fix this?
Thanks and regards,
Abdalla
…On Tue, Aug 30, 2022 at 6:36 PM Abdalla Nizar ***@***.***> wrote:
Thank you Felix.
On Tue, Aug 30, 2022, 18:27 Felix Biego ***@***.***> wrote:
> Okay, noted. I will implement that
>
> —
> Reply to this email directly, view it on GitHub
> <#1 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA5JGZ5WSKGLMQJRT5HBLUDV3YR43ANCNFSM6AAAAAAQAJNKFI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Hello, |
hello abdazz25, which callback url are you using? |
@fbiego I am not very familiar with GitHub Pull Request. However, from my previous tests above.
So, this error which generated is because in your code the concept of Store Number is not taken care of. "Failed. M-PESA cannot complete this operation. The parameter value is incorrect. No till is found. for CustomerPayMerchant. For more information call or SMS customer services on 100." What I am requesting is, if you can handle this Store Number issue. So that it can work with Till Numbers. @jumla-online |
Hi guys, {"success":true,"paid":true,"message":"Payment successful","amount":1,"txID":"RHP2ZDY10O","balance":null,"date":20230825115858,"number":254716594xxx,"merchantID":"7609-145740404-1","checkoutID":"ws_CO_25082023115851612716594139","resultCode":0,"resultDesc":"The service request is processed successfully."} |
Thanks for the information. Could you share if Till numbers are already supported in the API? |
@fbiego yes till numbers are supported. I have it working on a WordPress website checkout. However as mentioned earlier on one of my earlier comments, when using a Till Number, there is something called Store Number, this has to be sent as part of the parameters to the API for authentication. This is not taken care of on your Library. Every Till Number has a Store Number assigned to it. Kindly make some time to check on it. |
Hi Felix,
Hope you are keeping well.
I am trying to test your Arduino Library on ESP32 module.
It connect to the Wifi the access token seems to work cause if I change the consumer_key , pass_key or secret_key. I get the invalid access token error.
How ever the STK Push fails with the error below.
Waiting for WiFi to connect... connected
Sending STK request
{"Result":"failed","HttpCode":"500"}
Could you kindly assist.
Thanks and regards,
Abdalla
The text was updated successfully, but these errors were encountered: