[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"$f31wdj6dzpvq2c":3},{"title":4,"description":5,"html":6},"How to use the MTN MoMo API with Postman","MTN MoMo is mobile payment system available in Uganda, Ghana, Zambia, Cameroon, Eswatini, Ivory Coast, Benin, Rwanda, Guinea-Conakry, Congo, Liberia and South Africa.","\u003Ch1>How to use the MTN MoMo API with Postman\u003C\u002Fh1>\n\u003Cp>MTN MoMo is mobile payment system available in \u003Cstrong>Uganda, Ghana, Zambia, Cameroon, Eswatini, Ivory Coast, Benin, Rwanda, Guinea-Conakry, Congo, Liberia and South Africa\u003C\u002Fstrong>.\u003C\u002Fp>\n\u003Cp>In the nutshell \u003Cstrong>MTNMoMoPay\u003C\u002Fstrong> enables merchants to receive payment for goods and services using MTN Mobile Money. It is accessible over the mobile phone (or as a smartphone App)for both customers and merchants. With \u003Cstrong>MoMoPay\u003C\u002Fstrong>, merchants can sell airtime and earn commission, pay suppliers, pay salaries as well as transfer money to the bank.\u003C\u002Fp>\n\u003Cp>MTN has opened an API for the developers to create Apps for merchants to received payments. All developer information is available online on \u003Ca href=\"https:\u002F\u002Fmomodeveloper.mtn.com\" target=\"_blank\" rel=\"noopener\">https:\u002F\u002Fmomodeveloper.mtn.com.\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>After doing a few projects in Uganda and Swaziland we have noticed that it usually takes hours of research and background knowledge to understand how this API actually works. \u003Cstrong>One of the main burdens is the fact that there is no good way to test the system, without going Live.\u003C\u002Fstrong> It is particularly challenging for the foreign company, as currently MTN allows \u003Cstrong>onlyresident companies\u003C\u002Fstrong> to apply for the Live usage.\u003C\u002Fp>\n\u003Cp>So after many hours on public support forums we decided to make a small contribution to the developer community and explain how to get started with MoMoPay Open API &amp; Postman, so  I will explain:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Demystifying \u003Cstrong>MoMoPay API Sandbox\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>List Sandbox limitations &amp; differences comparing to the Live setup\u003C\u002Fli>\n\u003Cli>Explain why I use Postman for MoMoPay App development\u003C\u002Fli>\n\u003Cli>Introduce my YouTube video which shows how to use Postman with MoMoPay API\u003C\u002Fli>\n\u003Cli>Show where \u003Cstrong>to download\u003C\u002Fstrong> MoMoPay API \u003Cem>Postman\u003C\u002Fem> Collection &amp; Sandbox environment file\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Let’s dive right in.\u003C\u002Fp>\n\u003Ch2>Demystifying MoMoPay API Sandbox\u003C\u002Fh2>\n\u003Cp>MoMoPay API Sandbox is the official way to test your application before going Live. You can get Sandbox access after signing up on \u003Ca href=\"https:\u002F\u002Fmomodeveloper.mtn.com\u002Fsignup\" target=\"_blank\" rel=\"noopener\">momodevelopers.mtn.com\u002Fsignup\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>After the signup you will be able to pick API you want, like Collections, Disbursements, Collection Widget and generate subscription keys for the Sandbox environment. You must know that these subscription keys are not for the Live usage. You will get the \u003Cstrong>Live\u003C\u002Fstrong> subscription keys on the other portal \u003Ca href=\"https:\u002F\u002Fmomoapi.mtn.com\" target=\"_blank\" rel=\"noopener\">momoapi.mtn.com\u003C\u002Fa>, there is no public signup here, you get the username\u002Fpassword from MTN directly, after KYC approval process (takes a while actually).\u003C\u002Fp>\n\u003Cp>Once you are in the Sandbox you must always keep in mind that you have certain differences from the Live MoMoPay system, the main are:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Sandbox \u003Cstrong>is not requesting real money\u003C\u002Fstrong>, so no USSD request on your phone. no matter how hard you try - Sandbox has an additional API to provision API user and access key. This API doesn’t exist in Live, you will generate the user and the key on \u003Cstrong>MTN Partner Portal\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>In the Sandbox \u003Cstrong>you can only useEUR\u003C\u002Fstrong> currency and certain \u003Ca href=\"https:\u002F\u002Fmomodeveloper.mtn.com\u002Fapi-documentation\u002Ftesting\u002F\" target=\"_blank\" rel=\"noopener\">test numbers\u003C\u002Fa> from Sweden - Sandbox is not able to callback your application, to notify about payment status. This one is a sad limitation. - Account balance will return “weird” results, like -1 and error messages. Probably made to test different cases.\u003C\u002Fli>\n\u003Cli>QR Code Collection Widget \u003Ca href=\"https:\u002F\u002Fwidget.northeurope.cloudapp.azure.com:9443\u002Fdemo.html\" target=\"_blank\" rel=\"noopener\">is broken on Sandbox\u003C\u002Fa>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Knowing these differences &amp; limitations will help you a lot when building your MoMoPay Apps and will save tons of time! I will provide a Postman environment file for MoMoPay Sandbox together with the Postman collection.\u003C\u002Fp>\n\u003Ch2>Why i use Postman for MoMo API\u003C\u002Fh2>\n\u003Cp>Use Postman has several advantages, especially for MoMo development\u003C\u002Fp>\n\u003Cul>\n\u003Cli>You can switch from Sandbox and Live environments with one click, just great!\u003C\u002Fli>\n\u003Cli>Postman is a stand alone tool, doesn’t depend on momodeveloper.mtn.com portal which sometimes goes down.. - You can share Postman collection with your remote team located in the other country! Wow, welcome and - You can also share your environment files with pre-set keys, saves a lot of time!\u003C\u002Fli>\n\u003Cli>Postman works great even if your Internet connection is not the best, still happens these days.\u003C\u002Fli>\n\u003Cli>You can export code from Postman in Java, NodeJS, PHP, Python and other languages - You can monitor the status of MoMoPay API in Postman after your App went Live, how cool is that\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Sleeping already? Let’s move on!\u003C\u002Fp>\n\u003Ch2>Video tutorial on how to use Postman with MoMo\u003C\u002Fh2>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=56dybPT6ZM4\" target=\"_blank\" rel=\"noopener\">Watch the tutorial on YouTube\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>A few days ago I made this video, this to date has 200 views and 20 likes, this is my first video, so i’m really proud here  I will be some happy if you could do all that YouTube stuff and like, commend and subscribe to m channel.\u003C\u002Fp>\n\u003Cp>IMPORTANT, do not use \u003Cstrong>Web version of Postman, it is NOT SUPPORTED YET,\u003C\u002Fstrong> get the real Windows\u002FMac \u003Ca href=\"https:\u002F\u002Fwww.postman.com\u002Fdownloads\u002F\" target=\"_blank\" rel=\"noopener\">Postman App here\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>IMPORTANT, please watch this video before or right after your download Postman Collection and Sandbox environment file, it will really help you to navigate around and reduce support requests for us thank you!\u003C\u002Fp>\n\u003Ch2>Get the Postman MoMoPay API collection\u003C\u002Fh2>\n\u003Cp>Ask for the collection through \u003Ca href=\"\u002Fcontact\">the contact form\u003C\u002Fa> and we send it to you by email, free of charge. If it helps, a thumbs-up on the \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=56dybPT6ZM4\" target=\"_blank\" rel=\"noopener\">YouTube video\u003C\u002Fa> is appreciated.\u003C\u002Fp>\n\u003Ch2>So what's next?\u003C\u002Fh2>\n\u003Cp>After testing our Postman Collection in Sandbox the next step is to move your Application to Live, you can do that on momodeveloper.mtn.com, look for the “Go Live” in the menu. You will need to submit KYC forms and wait, wait and one more time wait.\u003C\u002Fp>\n\u003Cp>Eventually, you will get a login to \u003Ca href=\"https:\u002F\u002Fmomoapi.mtn.com\" target=\"_blank\" rel=\"noopener\">momoapi.mtn.com\u003C\u002Fa> and MTN Partner portal, where you generate the keys. Once you have the Live keys, you can import Postman Live environment files containing Production endpoints. You can download them below.\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"\u002Fwp-content\u002Fuploads\u002F2021\u002F06\u002FMTN-MoMo-Live-12-countries.zip\">Download Live Environments\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>One day i will make a post about how to use Postman Collection in Live and show you how it all looks on the mobile phone! With real requests! Piece for the world and stay healthy!\u003C\u002Fp>\n",1790231205462]