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.php
file using your text editor. -
Do the same for
disbursements.php
file. -
Navigate to
subscriptionKey
and 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.php
and one of the subscriptions keys for disbursements product should go indisbursements.php
file. -
You can make further changes to
providerCallbackHost
andX-Callback-Url
as 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.php
file for collections testing ordisbursements.php
file for disbursements testing using localhost in your browser. For testing purposes in sandbox do not change the currency fromEUR
and always use testing numbers as provided in the sandbox on use cases. -
This repository is not affliated with MTN.