Skip to content
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

FAILED STK-PUSH: ACCOUNTREFERENCE #45

Open
AustinOyugi opened this issue Jun 15, 2022 · 4 comments
Open

FAILED STK-PUSH: ACCOUNTREFERENCE #45

AustinOyugi opened this issue Jun 15, 2022 · 4 comments

Comments

@AustinOyugi
Copy link

{"status":"error","message":"The element AccountReference is invalid.","data":"20"}; Status code: 400 [] {"uid":"021d69b"}

Can't find a clear cause of the error

@kisese
Copy link
Contributor

kisese commented Jun 15, 2022

Hi @AustinOyugi , I believe the AccountReference parameter on the request body should be of type string and have a Maximum of 12 characters. Maybe check that

@AustinOyugi
Copy link
Author

{
"BusinessShortCode": "1850908",
"Password": "",
"Timestamp": "20220615022333",
"TransactionType": "CustomerBuyGoodsOnline",
"Amount": "20",
"PartyA": "254721373685",
"PartyB": "1850908",
"PhoneNumber": "254721373685",
"CallBackURL": "https://7cb2-196-108-161-29.ngrok.io/v1/payment/mpesa/stkpush/callback",
"AccountReference": "5BPW2EMS67XE",
"TransactionDesc": "CustomerBuyGoodsOnline",
"Remark": "CustomerBuyGoodsOnline"
}

@AustinOyugi
Copy link
Author

AustinOyugi commented Jun 15, 2022

@kisese The payload I'm sending

@AustinOyugi
Copy link
Author

@kisese any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants