Mtn Money Developer API using cURL in PHP For Collections.
Documentation and official resources can be found at MTN Developer Portal sandbox: https://momodeveloper.mtn.com/
-
You have Signed Up at: https://momodeveloper.mtn.com/signin?ReturnUrl=%2F
-
You have registered for the collections product and disbursement product on the sandbox :https://momodeveloper.mtn.com/products
-
You possess the two subscription keys for collections product and two subscription keys for disbursements product
-
After cloning or downloading this repo, open the
collections.phpfile using your text editor. -
Do the same for
disbursements.phpfile. -
Navigate to
subscriptionKeyand put one of your subscription keys there. On your sandbox you are given two subscription keys to use, only choose one to put here. One of the subscriptions key for collections products should go incollections.phpand one of the subscriptions keys for disbursements product should go indisbursements.phpfile. -
You can make further changes to
providerCallbackHostandX-Callback-Urlas you wish, This is where they will send any response provided a certain request and/or transaction has been succcessfull. -
You can now open your localhost (using xampp/wampp) and run the
collections.phpfile for collections testing ordisbursements.phpfile for disbursements testing using localhost in your browser. For testing purposes in sandbox do not change the currency fromEURand always use testing numbers as provided in the sandbox on use cases. -
This repository is not affliated with MTN.