MTN MOMO Gateway - a Python package that simplifies the process of interacting with the MTN Mobile Money (MoMo) API, making it easy to create API users, generate API keys, and obtain bearer tokens for secure transactions.
Project description
MTN MOMO Gateway
The momogateway
package provides a Python interface for interacting with the MomoGateway API. It allows you to easily create an API user, generate an API key, and obtain a bearer token for authentication.
Installation
You can install the momogateway
package using pip:
pip install momogateway
Usage
from momogateway import momogateway
baseURL = "YOUR_BASE_URL"
callbackHost = "YOUR_CALLBACK_HOST"
apiKey = "YOUR_API_KEY"
xTargetEnvironment = "YOUR_TARGET_ENVIRONMENT"
result = momogateway.generate(baseURL, callbackHost, apiKey, xTargetEnvironment)
print(result)
Replace the placeholders (YOUR_BASE_URL
, YOUR_CALLBACK_HOST
, YOUR_API_KEY
, YOUR_TARGET_ENVIRONMENT
) with your actual API and environment details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file momogateway-0.1.2.tar.gz
.
File metadata
- Download URL: momogateway-0.1.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b97466ea2a107d0047bf99c4d9145f304215f24587e1a2d1d2c17c4c872277f |
|
MD5 | 6c40c8b3497c195789382f5c0ab4318a |
|
BLAKE2b-256 | 1976616144488f60e22f6e89686ec7131619ff5a9974963a3c6f7022e0fd9fb5 |
Provenance
File details
Details for the file momogateway-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: momogateway-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50a4ce1182d0fa9cbeb50545b8d6b7efe5f63fb50154bddf31b7e587ad60e32e |
|
MD5 | e390986c02c6725ebb2d395f40b2e4db |
|
BLAKE2b-256 | 6730923883ea97ec9905dd03ec4d6112d667c9fbe460ba6ddcfaadddddec7ba1 |