Share your queries, seek advice, and learn from the collective wisdom of an engaged and informed MoMo Community
Recently active
Hi,I'm getting internal error 500 when trying to get access token, same thing for API user creation.[2024-06-01 08:34:25] local.ERROR:Server error: `POST https://sandbox.momodeveloper.mtn.com/collection/token/` resulted in a `500 Internal ServerError` response:{ "statusCode": 500, "message": "Internal server error", "activityId": "26ad2b84-b5fb-4035-a0e7-fcf80c1e5b23" }It has the same behavior as described in the following topic::
A few days ago, creating a payUrl to get a payment QR code went very well, however, today when testing the payment function again, even though there was no error during the order creation process and when checking the transaction status, the order still exists, but my payUrl is displayed as in the picture below, why is that?
Hi Team,We are building a ride-hailing app for the country of Ivory Coast. For the same, we are trying to integrate MTN money API into our mobile app which will allow drivers to request ride money from the riders. We are trying to setup a sandbox environment to test the APIs but are unable to do so.It would be great if someone from your developer team can help us with our queries over a call or we can put together our questions in an email for your team to answer.Regards
I’m in Benin, and searching through these pages, i have no answer. Can somebody help me. I got 401 even though i submitted the right suscription key.{ "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."}
Failing with 206666
how can I get API user and API key in Production??the country is Congo
Hello team. I have partially completed the tests. I am filling them in a excel sheet. on the link.https://docs.google.com/spreadsheets/d/1LPYxZM26xVOYzSyUHdfiK7LAizrnB6j4JzB2iXdUqC0/edit?usp=sharing I am confused about a few though, like; • Duplicate Reference ID (requestToPay and Transfer): I am also getting 202 accepted. for this I thought it would fail.• Exceed Daily Limit(requestToPay): Confused on how I can test this. I dint see any number for this case.• Invalid AccountHolderType(active and ): this I understand they mean msisdn, but I dont see anywhere to vary it. they ate all get requests without any body• Invalid AccountHolderID(ValidateAccount and Balance): Same issue as above.
I am getting some response as string(0) ""public function requestToPay() { $url = "https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); # Request headers https://mysite.com $headers = array( 'Authorization: '.$this->createAccessToken(), 'X-Callback-Url: mysite.com', 'X-Reference-Id: '.$this->getGUID(), 'X-Target-Environment: sandbox', 'Content-Type: application/json', 'Cache-Control: no-cache', 'Ocp-Apim-Subscription-Key: *******'); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); # Request body 0248888736 $request_body = '{ "amount": "5.0", "currency": "EUR", "externalId": "6353636", "payer": {
How do I access an api that uses merchant codes to push payments from clients to business?
Hello support, There are difficulties with going through the payment async flow before we are ready to go live.What I did:1. Subscribed “Collection” API group.2. Generated userId = uuid_v43. And created user via “/v1_0/apiuser” with “Ocp-Apim-Subscription-Key” header value = subscribed collections primary key with body:{"providerCallbackHost": "our-company-domain-host"} // without scheme4. Created userKey via “/v1_0/apiuser/{userId}” with the same “Ocp-Apim-Subscription-Key” header5. Created accessToken via “/collection/token/”6. Requested “/collection/v1_0/requesttopay” with headers:Ocp-Apim-Subscription-Key: profile->subscribed collections primary keyX-Reference-Id: f0b06fb7-4e7c-462b-9e29-d62b6b2f17cdX-Target-Environment: sandboxX-Callback-Url: http://our-company-domain-host/momo/payment/purchase-callbackContent-Type: application/jsonAuthorization: Bearer token from step-5and body:{ "amount": "100.00", "currency": "EUR", "externalId": "f0b06fb7-4e7c-462b-9e29-d62b6b2f17cd",
I want to send a notification to my python app whenever someone sends money to my mobile money account. But I am still wandering around. How do I go about this?I have learned how to create the access token and how to register for the Notifications product on developers.mtn.com. How do i get my app working?I wish to get real time transaction details immediately when money is received.Any help or idea will be much appreciated.
So I will like enable payment via ussd code, how can I implement it ?
Hi allI am trying to proceed with sandbox testing for the api in order to use it at a later stage for handling payments for a voucher service that uses among other things a USSD interface for mobile devices.I am experiencing errors when trying to create the API user for the sandbox and as a result can proceed no further.Please adviseThanksIain
Hello,We want to process PoS payment using tap to pay (NFC) with MTN momo. What is the suitable API process for this application?
Hello people,is the sandbox.momodeveloper.mtn.com server fully working and online? I tried to ping the server, response is "{ "statusCode": 404, "message": "Resource not found" }"
I want help on how to integrate MTN payment in my flutter application
<?phprequire 'vendor/autoload.php';use FannyPack\Momo\Products\Collection;// use FannyPack\Momo\Products\Disbursement;// use FannyPack\Momo\Products\Remittance;use Ramsey\Uuid\Uuid;$xReferenceId = Uuid::uuid4()->toString();$options = [ 'callbackHost' => 'sandbox.momodeveloper.mtn.com', 'subscriptionKey' => 'mygenerated_subs_key', 'xReferenceId' => get_uuid(),];$options['baseUrl'] = 'https://sandbox.momodeveloper.mtn.com';$product = Collection::create($options);$product->createApiUser();$apiKey = $product->createApiKey();$options['apiKey'] = $apiKey->getApiKey();$product = Collection::create($options);$token = $product->getToken();$options['accessToken'] = $token->getAccessToken();$product = Collection::create($options);// Example externalId generation$externalId = Uuid::uuid4()->toString();$product->requestToPay($xReferenceId, '46733123453', '1000', 'EUR', 'Payment for order #123', 'Thank you for shopping with us!');function get_uuid(){ r
I’ve been using https://momodeveloper.mtn.com/ and recently I came accross https://momoapi.mtn.com/And generally they do the exact things, except you’ll have to create a new account, which I did but they are taking too long to approve my product(Collections and Disbursement) subscriptions which makes me wonder if the site is still operational.Any answers will be much appriciated. Thanks.
Hi. I am trying to create an acess token on the sandbox environment but I am experiencing a 400 error. but I sent the request on postman and it went succesfully but failed on the momo developer sandbox and there is no additional info as to why it fails
Hi, I am Certified Salesforce Developer and looking to integrate salesforce with MTN momo through rest API. For initial Stages I am testing it in Sandbox and testing it in Postman about how the things are working.I have got 2 keys in my Profile Primery Key and Secondary Key. Whenever I try to generate an access token in POST man it says :{ "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."}I have tried adding both keys in header with parameter : Ocp-Apim-Subscription-Key = Key.I have subscriped the collection widget. IS the integration possible with salesforce?
I am using mtn momo for e wallet system, there is two product one is collection to collect the money from customer and disbursement to send money to customer, I want to know the balance in the collection product also available to disbursement?
Hello 🤗I want to implement the scenarios bellow, can you suggest for me the right endpoints:Transfer money from user account to his friend. Transfer money from user account to business accounts of some service providers (to pay a bill or any another service).I want to use CreateInvoice for both of cases, will it work? because the friend account is not for business, will this provide and error? does mtn make a difference between a merchant or a personal account?and what endpoints do you suggest for me.@byaruhaf @anicet @crankluga @allan.ddamulira @leontymo I would appreciate if you help me 🙏
Hello @everyone! What product should I use to transfer money between 2 users in My Application? Please
Good day team,I am completing the UAT test cases excel document for Collection. I have all other cases completed except the one for insufficient funds, i.e. sending a debit amount greater than Payer available balance. Because I do not know the balance I have, I decided to call the GetAccountBanlance end point. Unfortunately I am getting status 500 (internal server error), with the message “Authorization failed. Insufficient permissions.”Any assistance to point me to what I am not doing right.Thanks
I just saw a video on how to use the Momo OpenAPI but there is no documentation on the momo page. Can i get access to the implementation in the various languages, especially Javascript
Get Paid: Enabling Seamless Payments for All businesses from the MoMo Subscribers
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.