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 on sandbox :https://momodeveloper.mtn.com/products
-
You possess the two primary keys for the collection widget*
-
After cloning or downloading this repo, open the index.php file using your text editor.
-
Open the index.php, 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. -
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 index.php file using localhost in your browser. For testing purposes in sandbox do not change the currency from EUR and always avoid starting with zero for testing numbers
-
This repository is not affliated with MTN.