Use Airtel Africa to process payments in Moodle
# Payment gateway Airtel Africa #
This plugin was developed thanks to funding from Medical Access Uganda and i+academy
The plugin allows a site to connect to Airtel Africa to process payments.
Currently this plugin supports payment on following currencies:
| Country | Country Code | Currency | Currency Code |
| :---- | :----: | :---- | :----: |
| Uganda | UG | Ugandan shilling | UGX |
| Nigeria | NG | Nigerian naira | NGN |
| Tanzania | TZ | Tanzanian shilling | TZS |
| Kenya | KE | Kenyan shilling | KES |
| Rwanda | RW | Rwandan franc | RWF |
| Zambia | ZM | Zambian kwacha | ZMW |
| Gabon | GA | CFA franc BEAC | CFA |
| Niger | NE | CFA franc BCEAO | XOF |
| Congo-Brazzaville | CG | CFA franc BCEA | XAF |
| DR Congo | CD | Congolese franc | CDF |
| DR Congo | CD | United States dollar | USD |
| Chad | TD | CFA franc BEAC | XAF |
| Seychelles | SC | Seychelles rupee | SCR |
| Madagascar | MG | Malagasy ariary | MGA |
| Malawi | MW | Malawian kwacha | MWK |
## Setup Airtel Africa account
To set up access within Moodle you will need to:
- Register a new application: Airtel Africa have their own docs on this.
- Enable the Collection-APIs and in the settings select the countries where you want to accept money from.
- Configure the callback url in your Application settings. The URL is in the format "
example.com". Make a phone call to your local Airtel representative so your submitted request is accepted. Yes, somebody at Airtel Africa needs to turn a switch before your changes take effect. Hope for the best. I never made my phone call, my dashboard tells me the APIs are enabled, but after more than 5 months none of the APIs work ...
- For every change, callback url, going live, enabling extra APIs, ... see previous line.
- If you want to test this plugin in the sandbox environment, contact your local Airtel representative. He/she will *manually* confirm your test payment.
- Do __NOT__ rely on the sandbox environment, som …