Connect. Share. Learn
Find answers, support, and inspiration from other MoMo API users.
You're not signed in. Please sign-in to report an issue or post a comment.
NOTHING DEH WORK
MTN please seat up, cause nothting is working on these endpoint.Abaaaa
Token Generation Issue in PHP
How to generate token in php? What are the User ID and API key here? Is there any format to combine User Id and API Key? Please define one example? Thanks
payment service
not able to test any service
Why is this not working
POST https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay HTTP/1.1 Host: sandbox.momodeveloper.mtn.com X-Reference-Id: 1b73e4b2-97c2-4c12-8871-6c756696db2b X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "2", "currency": "GH", "externalId": "1b73e4b2-97c2-4c12-8871-6c756696db2b", "payer": { "partyIdType": "MSISDN", "partyId": "0546766186" }, "payerMessage": "dummy", "payeeNote": "dummy" }
Format of Data Sent
Can you help with the currency format example GH OR GHS. Also you need to give a vivid valid example so we can follow. Its making the whole process lengthy. API is not any new thing, make the documentation clear with examples.
collection widget
Hi, pleased to meet you. I am trying to connect and test out the collection widget and in need of some help understanding how to setup it properly. Please advise. Widget Demo: https://widget.northeurope.cloudapp.azure.com:9443/demo.html do not working for me.
My key is being rejeceted that its invalid yet its the one in my profile why?
When i use my subscription key in my web site to receive money its being rejeceted
Generating API User and API Key
I intend to use the API from Ghana and i am having some trouble generating the API User and API Key. The documentation says "API user and Key are wholly managed by the merchant through Partner Portal"; how can i access the partner portal?
Internal Server Error
I have been trying to generate the access token from https://sandbox.momodeveloper.mtn.com/collection/token/ endpoint but it is always unsuccessful. This is the response i get: { "statusCode": 500, "message": "Internal server error", "activityId": "f1ebecf8-aae8-4f7f-929f-3bb4dfba458c" } Please i need immediate help Thanks
Callback URL does not match the configured value.
How do i register a callback url for receive information on transaction information when a customer pays for services
How to withdraw money from developer account?
Same as title
Bad Request when sending a post request. See my body and header
{ 'Authorization' : 'Bearer '+token, 'X-Callback-Url' : 'http://myapp.com/momoapi/callback', 'X-Reference-Id' : reference_id, 'X-Target-Environment' : 'sandbox', 'Content-Type' : 'application/json', 'Ocp-Apim-Subscription-Key': '019414ea5a5948039203bf5a1d87ce4c' } body = { "amount":"5000", "currency":"UGX", "externalId":"12345", "payer": { "partyIdType":"MSISDN", "partyId":"0780123456" }, "payerMessage":"text message", "payeeNote":"test note" }
Not an Issue, rather a support question
Does this api cover all countries in Africa using MTN?
Can't get response from token - POST web service call
POST https://ericssonbasicapi2.azure-api.net/collection/token/ HTTP/1.1 Host: ericssonbasicapi2.azure-api.net Authorization: Base64 encoded string (containing API user ID and API key) Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• I try this service call from my android app and i get SocketTimeOut Exception I also try this service from API sandbox and i didn't get any response from it
data-api-user-id
data-api-user-id
Running Localhost Application
Hello My application will be running on Localhost but i wanted clients who come to on site to pay through momo pay and how am i going to submit my application for review
400 Bad Request - requesttopay API
Hello, What is solution of above errors? Below is header and body params. [headers:protected] => Array ( [user-agent] => HTTP_Request2/2.3.0 (http://pear.php.net/package/http_request2) PHP/5.6.40 [authorization] => Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSMjU2In0.eyJjbGllbnRJZCI6IjQ4OGYyNzAzLTk0NjQtNGQyMy1iYjI2LTVlMTU5OWI0OTljMSIsImV4cGlyZXMiOiIyMDE5LTA2LTEyVDExOjEzOjAxLjM3NCIsInNlc3Npb25JZCI6ImJkMzUyN2JmLWRiOGMtNGIwZS05YjhmLTU3NTFkZThjYzZiYyJ9.F5cgsWzDi945fqu_24CSXJvwZFVJI1YkWF7KfsKqYHG5-YbO3doEyP2wzk3eKM5cCI8q63zzMreLlZRsbxJXfZN_YxaIPPaqTquAIFKcCDFziUfVhZDuVf9c5h2w3w6GyHl-5EJwtowapwJSjLbb26zqhtQWOUREykCcxnKCGOPTbDkdYSEYCUoP2q06bxerJyKgjEzpBxzH2urEdjYPTadLlw19VHij3pquVhESexdbB9KVr-C9ITC7el8L95uXcbmiaTBU-9vmwaajOsdtMttlPwEz4YEy2dBYUNVNeTEidskqInhtNrLcjZXBKkmKJgO0OS4D1fqiVp0XTYv4zw [x-callback-url] => http://babysitting4.bbcsproducts.com/mtn/callback.php [x-reference-id] => 488f2703-9464-4d23-bb26-5e1599b499c1 [x-target-environment] => sandbox [content-type] => application/json [ocp-apim-subscription-key] => 2420b5713a6f4387a945a39998b11f24 ) [_path:Net_URL2:private] => /collection/v1_0/requesttopay [_query:Net_URL2:private] => amount=5000¤cy=EUR&externalId=23312345&payer[partyIdType]=MSISDN&payer[partyId]=46733123450&payerMessage=test&payeeNote=test
Momo Pay API Client Packages
Hello, Are there any client packages we can just install to get access to the api without much hustle? I sort of built one for JavaScript/Typescript/Nodejs. I need it reviewed. https://github.com/sopherapps/mtn-pay-js I hope to build one for python too but I need to know whether I am on the right path first. Please review.
Create API user via python code
Sending the request via python code returns code 200 instead of 201. Print(data) does not print anything. b''
Create API User through API
Hi, I'm trying to make the MTN API integration in Safeboda, but I'm facing with an issue during the API user creation through the API. I just generate the Subscription Keys and making the following call to the API return the following error. curl -X POST \ http://momodeveloper.mtn.com/apiuser \ -H 'Content-Type: application/json' \ -H 'Ocp-Apim-Subscription-Key: aa1490b5298e4e1ab8d2d9b4d1986a75' \ -H 'X-Reference-Id: c576c5f8-8567-4b06-b32e-545d32770970' \ -H 'cache-control: no-cache' \ -d '{ "providerCallbackHost": "safeboda.com" }' Ocp-Apim-Subscription-Key: My primary key generated in the developer portal. X-Reference-Id: A UUID generated. Response: Status code: 500 Internal Server Error .... configuration system.web customErrors mode="Off" system.web configuration .... configuration system.web customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm" system.web configuration Do you have an idea about what I'm making wrong? Regards Ivan
The identifier of the EWP system
Hello, How do i get the identifier of the EWP system.
Callback URL
How do i register a callback url for receive information on transaction information when a customer pays for services
test
test
Balance EUR
Hello, I've done first request to collection/v1_0/account/balance and received response that I have -25 EUR, not even UGX. Then I tried to request a payment (in EUR, because I got an error that UGX is not supported), I got 202 Accepted response, but the Payer can't figure out how to pay this request. Then I tried to check my balance again, and now I'm getting response the following response: Before token renewal: { "message": "Authorization failed. Insufficient permissions.", "code": "NOT_ALLOWED" } After token renewal: { "message": "Requested resource was not found.", "code": "RESOURCE_NOT_FOUND" }
{ "statusCode": 404, "message": "Resource not found" }
SandBox Resource Not Up and Running https://ericssonbasicapi2.azure-api.net/ Testing the Collection Api and thats the response i get { "statusCode": 404, "message": "Resource not found" }
Urgent assistance required.
Am trying to create an api user,response status is 201, but i always get an empty respose in the Api sandbox(try it) environment.What is the use of setting up a providerCallbackHost and what should I set the host to. Please assist
Create an api user
Am trying to create an api user,response status is 201, but i always get an empty respose in the Api sandbox(try it) environment.What is the use of setting up a providerCallbackHost and what should I set the host to. Please assist
How to set authorization
Basic authentication header containing API user ID and API key. Should be sent in as B64 encoded.Can you give an example of how API user ID and key are concatenated?
What's the format / payload for the Callback URL
Hi there, Could you provide an example of what the URL structure (and payload) for the X-Callback-Url should be in the request to pay endpoint?
Suscription Key
Where is the Subscription Key in the profile. I see two strings called keys but none of them is subscription key. I have searched previous questions but no answer yet.
Failed collections widget
I have submitted my problem to your chat team nearly every day, frequently 2 or 3 times a day for weeks. I've had promises for noon, soon etc. I also submitted this form, weeks ago and received a promise. No followup. I am doing a system for a major Ugandan Corporation and the only outstanding thing is the payment. I have a very small test program. When I click the Icon I get this failure. I'm attaching the program. I can send you a pic of the screen but I can only attach one file. Please don't ignore this. I'm desperate. Regards Marcelle Silbert (Perth, Australia)
error 400
Good day guys! I always Got 400 Bad Request. Dont know whats the specific error. Note: I use MOMO requesttopay-POST console to run sanbox test. Any Idea? Parameter Below.... POST https://ericssonbasicapi2.azure-api.net/collection/v1_0/requesttopay HTTP/1.1 Host: ericssonbasicapi2.azure-api.net X-Reference-Id: c72025f5-5cd1-4630-99e4-8ba4722fad57 X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "100", "currency": "EUR", "externalId": "21212122", "payer": { "partyIdType": "MSISDN", "partyId": "46733123453" }, "payerMessage": "payerMessage", "payeeNote": "payeeNote" }
How to get the X-Target-Environment
Some help on how to get the X-Target-Environment
Acquiring API
I would love to know how to fully acquire the API and intergrating it to my mobile app Thanks
any video
am wonder of any video tutorial to help me go thru this integration of api into my app
X-Reference-Id
Hey guys, where to find that X-Reference-Id for provisioning?
M.T.N A.P.I
hi i would like to find out do you need to go live so that an account can be created for the partner in which funds received will be deposited into Also can you use this a.p.i in zambia
Failed collection widget
Can someone please give me a sample of a working collection widget?
Failed collections widget
I can't get a response from chat. I've tried twice. I'm hoping you can help. I'm a new user. I'm trying to test collection widget in sandbox but it is showing Something went wrong.
API
Hello, I want somone to take me through the whole process on how to integrate the MTN API in my PHP web application so that I can recieve money from the clients via MM. abdulissahaku4@gmail.com is my email
Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API
But am submitting a value The best error description would be "Wrong subscription key please provide the right key" up to now i dont know what the problem is now am using curl_php to send my request Thanks
zrer
rtttet
Help
Hello, I want somone to take me through the whole process on how to integrate the MTN API in my PHP web application so that I can recieve money from the clients via MM. normanmugumya00@gmail.com is my email
Empty response on /apiuser
Am trying to create an api user but i always get an empty response in Postman and bad request in the Api sandbox(try it) environment. Please assist
preapproval
Is preapproval under all the products
Subscription Limit Reached
I wanted to subscribe to Request to pay collection but whenever i go to the Products page, there is message "Subscription limit reached". I really wanted to test the API calls before i integrate in my app. What shoul i do please?
Getting internal servet error
Hello, I am using below mention information but getting error. POST https://ericssonbasicapi2.azure-api.net/disbursement/token/ HTTP/1.1 Host: ericssonbasicapi2.azure-api.net Authorization: c3VkaXB0by5tYWp1bWRhcjE5NzZAZ21haWwuY29t Ocp-Apim-Subscription-Key: 76ed8be31fed455daf82c7816a26b091 In postman I am also getting error. Can you please help me to sort out this problem. If I am using wrong then Please tell me what is wrong and what has to be used.
[GET] Reuest to /requesttopay/{Ref_ID} endpoint does not return a 'SUCCESSFUL' status as stated in the documentation.
Hi, I am followinf the documentation on getting the status of a payment via the trasaction_id in the sandbox. As stated in testing under "Test Numbers" 46733123453 ongoing (will answer pending first and if requested again after 30 seconds it will respond success) I am able to successfully [POST] and [GET] accordingly. However, after the first [GET] request, 30 seconds later I am unable to view a 'SUCCESSFUL' status on any subsequent calls. COuld this be a bug or am I dping anything wrong? Regards,
Request To Pay keeps returning Error 400 Bade Request
Hopefully someone can point out the particular issue. Authorization is basic auth encode base64 from postman POST https://ericssonbasicapi2.azure-api.net/collection/v1_0/requesttopay HTTP/1.1 Host: ericssonbasicapi2.azure-api.net Authorization: Basic NDA5YjgzYTgtN2VjMS00YmVjLTlmNWItZDJkNDVhODgxYzRjOjM4NDBjYzYwODkxZTRmODI5NTFiMTg5NWEzZmNmZjYx X-Reference-Id: 409b83a8-7ec1-4bec-9f5b-d2d45a881c4c X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "10", "currency": "EUR", "externalId": "8765437654", "payer": { "partyIdType": "MSISDN", "partyId": "46733123453" }, "payerMessage": "hello world", "payeeNote": "lets go" }
Error code 401
Hi Guys i am failing to go through with a request to pay post, i am not new to apis , i have tried this on sandbox, it failed and also tried to do this with post man, same error occurs, any one with a hit. Please note that i have provisioned of an API key already and i get this with no issues. Regards
Can't find the answer you are looking for?
We are here to help you should you need to speak to someone
Contact SupportLooking for developer documentation?
We have a resource to help you get up to speed with the MoMo API
View Documentation