Share your queries, seek advice, and learn from the collective wisdom of an engaged and informed MoMo Community
Recently active
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
We could no longer make any new request from our sandbox environment to any of the MoMo API endpoints. We keep receiving this error message "{ "statusCode": 403, "message": "Out of call volume quota. Quota will be replenished in 2.13:47:06." }"The main services requested includeDeposit V1 (https://sandbox.momodeveloper.mtn.com/disbursement/v1_0/deposit) RequestToWithdraw V1 (https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttowithdraw)These along with the associated check status APIs The error message indicates that the quota would be replenished in about 2 days but it has taken over a month now and the error still persist. Please, how can this issue be resolved?
good evening developers i need help. i downloaded momo sdk to integrate with my php code, i did test it with postman so i do have the api keys for the three products(collections, disbursement etc). i am also able to reach sandbox after integrating with mp php code(for testing) but im trying to call the get balance sample code and i believe i do get the feedback because i see a barrier token however i only want the account balance and not the whole information, its confusing and im not familiar with the curls although its php so i have no idea where to start inorder to get my balance request to be the only thing printed on the browser...thank for the help in advance. i get the following exception:omopsdk\Common\Exceptions\MobileMoneyException Object ( [rawData:momopsdk\Common\Exceptions\MobileMoneyException:private] => [errorObj:momopsdk\Common\Exceptions\MobileMoneyException:private] => [message:protected] => Service Unavailable [string:Exception:private] => [code:protected
we could no longer make any new request from our sandbox environment to any of the MoMo API endpoints. We keep receiving this error message "{ "statusCode": 403, "message": "Out of call volume quota. Quota will be replenished in 2.13:47:06." } "Please, how do we resolve this issue?
<?phpif ($_SERVER['REQUEST_METHOD'] === 'POST') { // Replace these with your actual API credentials $api_key = ''; $api_secret = ''; // Update the API endpoint $api_endpoint = 'https://api.mtn.com/collection'; // Data for the collection $data = array( // Validate and sanitize the amount input 'amount' => filter_var($_POST['amount'], FILTER_SANITIZE_NUMBER_INT), 'currency' => 'UGX', // Validate and sanitize the phone number input 'payer' => filter_var($_POST['phone_number'], FILTER_SANITIZE_FULL_SPECIAL_CHARS), // Specify the receiver of the money 'payee' => '256789123456', // Replace this with your own phone number or another phone number that you want to receive the money ); // Headers for the API request $headers = array( 'Authorization: Basic ' . base64_encode($api_key . ':' . $api_secret), 'Content-Type: application/json', ); // Initialize cURL session $ch = curl
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.