Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

momogateway-0.1.2.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

momogateway-0.1.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page