Skip to content

A python package that simplifies the process of interacting with the MTN Mobile Money (MoMo) API

License

Notifications You must be signed in to change notification settings

jonahgeek/python-mtn-momo-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A python package that simplifies the process of interacting with the MTN Mobile Money (MoMo) API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages