From a5fa464e36ff5c34e163722e57ffa1de53acfaac Mon Sep 17 00:00:00 2001 From: Phillip Ahereza Date: Sat, 22 Jun 2019 08:32:06 +0300 Subject: [PATCH 1/6] fixed typo in config.py --- src/mtnmomo/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mtnmomo/config.py b/src/mtnmomo/config.py index 7376814..60c6912 100644 --- a/src/mtnmomo/config.py +++ b/src/mtnmomo/config.py @@ -18,7 +18,7 @@ def __init__(self, conf): REMITTANCE_USER_ID: os.environ.get("REMITTANCE_USER_ID"), REMITTANCE_API_SECRET: os.environ.get("REMITTANCE_API_SECRET"), - REMITTANCE_PRIMARY_KEY: os.envieon.get("REMITTANCE_PRIMARY_KEY") + REMITTANCE_PRIMARY_KEY: os.environ.get("REMITTANCE_PRIMARY_KEY") DISBURSEMENT_USER_ID: os.environ.get("DISBURSEMENT_USER_ID"), DISBURSEMENT_API_SECRET: os.environ.get("DISBURSEMENTS_API_SECRET"), From 9728556bd6beb55b407d4c694dc048bec33ff72c Mon Sep 17 00:00:00 2001 From: okellogabrielinnocent Date: Tue, 10 Sep 2019 13:57:51 +0300 Subject: [PATCH 2/6] update README.md to match implemented function - change getTransaction to getTransactionStatus on readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3394eb1..fc92547 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ client = Collection({ 1. `requestToPay`: This operation is used to request a payment from a consumer (Payer). The payer will be asked to authorize the payment. The transaction is executed once the payer has authorized the payment. The transaction will be in status PENDING until it is authorized or declined by the payer or it is timed out by the system. Status of the transaction can be validated by using `getTransactionStatus`. -2. `getTransaction`: Retrieve transaction information using the `transactionId` returned by `requestToPay`. You can invoke it at intervals until the transaction fails or succeeds. If the transaction has failed, it will throw an appropriate error. +2. `getTransactionStatus`: Retrieve transaction information using the `transactionId` returned by `requestToPay`. You can invoke it at intervals until the transaction fails or succeeds. If the transaction has failed, it will throw an appropriate error. 3. `getBalance`: Get the balance of the account. From 70100d9e280291e98f3d084e1ebf12f9ac4e446c Mon Sep 17 00:00:00 2001 From: arthurarty Date: Tue, 14 Jan 2020 12:09:45 +0300 Subject: [PATCH 3/6] ch(README) - Correct importation in sample code. - Change import for Disbursement class in sample code. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3394eb1..8e192a6 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ You can create a disbursements client with the following ```python import os -from mtnmomo.collection import Disbursement +from mtnmomo.disbursement import Disbursement client = Disbursement({ "DISBURSEMENT_USER_ID": os.environ.get("DISBURSEMENT_USER_ID"), @@ -163,7 +163,7 @@ client = Disbursement({ ```python import os -from mtnmomo.collection import Disbursement +from mtnmomo.disbursement import Disbursement client = Disbursement({ "DISBURSEMENT_USER_ID": os.environ.get("DISBURSEMENT_USER_ID"), From c978d594131fb770905d972d97113282d9510c76 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Wed, 27 May 2020 13:28:42 +0300 Subject: [PATCH 4/6] remove print statements --- src/mtnmomo/client.py | 3 --- src/mtnmomo/disbursement.py | 1 - 2 files changed, 4 deletions(-) diff --git a/src/mtnmomo/client.py b/src/mtnmomo/client.py index fdeee8f..2740009 100644 --- a/src/mtnmomo/client.py +++ b/src/mtnmomo/client.py @@ -99,7 +99,6 @@ def request(self, method, url, headers, post_data=None): def interpret_response(self, resp): rcode = resp.status_code rheaders = resp.headers - print(resp) try: rbody = resp.json() @@ -163,7 +162,6 @@ def getTransactionStatus( "Ocp-Apim-Subscription-Key": subscription_key } _url = self.config.baseUrl + url + transaction_id - print(_url) res = self.request("GET", _url, headers) return res.json() @@ -192,5 +190,4 @@ def generateToken( def close(self): if self._session is not None: - print("closing!") self._session.close() diff --git a/src/mtnmomo/disbursement.py b/src/mtnmomo/disbursement.py index 6d71deb..4472b95 100644 --- a/src/mtnmomo/disbursement.py +++ b/src/mtnmomo/disbursement.py @@ -58,6 +58,5 @@ def transfer( if kwargs.get("callback_url"): headers["X-Callback-Url"] = kwargs.get("callback_url") url = super(Disbursement, self).config.baseUrl + "/disbursement/v1_0/transfer" - print(url) self.request("POST", url, headers, data) return {"transaction_ref": ref} From 06e2abd2ef5c4e8377c0337182ea93a3254781dc Mon Sep 17 00:00:00 2001 From: Peter Thaleikis Date: Wed, 25 Nov 2020 16:50:35 +0400 Subject: [PATCH 5/6] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 36deeef..1a89e95 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ These are the credentials we shall use for the sandbox environment. In productio Before we can fully utilize the library, we need to specify global configurations. The global configuration must contain the following: * `BASE_URL`: An optional base url to the MTN Momo API. By default the staging base url will be used -* `ENVIRONMENT`: Optional enviroment, either "sandbox" or "production". Default is 'sandbox' +* `ENVIRONMENT`: Optional environment, either "sandbox" or "production". Default is 'sandbox' * `CALLBACK_HOST`: The domain where you webhooks urls are hosted. This is mandatory. Once you have specified the global variables, you can now provide the product-specific variables. Each MoMo API product requires its own authentication details i.e its own `Subscription Key`, `User ID` and `User Secret`, also sometimes refered to as the `API Secret`. As such, we have to configure subscription keys for each product you will be using. From 5914667d6e393d2879315190a1862fa715e9567f Mon Sep 17 00:00:00 2001 From: Ray Besiga Date: Mon, 14 Jul 2025 14:34:56 +0300 Subject: [PATCH 6/6] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a89e95..5e46eed 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,21 @@ # MTN MoMo API Python Client -Power your apps with our MTN MoMo API + +**🛑 This repository is no longer actively maintained.** + +As of July 14, 2025, this project is no longer under active development. This means: +* No new features will be added. +* Bugs will not be fixed. +* Pull requests will not be reviewed or merged. +* Issues will not be addressed. + +We appreciate your interest and contributions. +**Thank you.** + +
+ +Power your apps with our MTN MoMo API
Join our active, engaged community:
Website