Client
Last updated
Last updated
Represent a Client agent that interact with all MTN MOMO API product
collection( subscription_key )
Method to get collection client
subscription_key (str) - The subscription key of the collection product
The collection agent
disbursements( subscription_key )
Method to get disbursement client
subscription_key (str) - The subscription key of the disbursement product
The disbursement agent
await
create_api_user( uuid, subscription_key, url_callback )
Method in charge of creating API USER from wallet provider
uuid (str) - a valid UUID version 4
subscription_key (str) - the subscription key of any product
url_callback (Optional[str]) - the website receiving call back
True if the user was created successfully
bool
await
get_api_user( uuid, subsciption_key )
Method in charge of getting API USER from wallet provider
uuid (str) - a valid UUID version 4
subscription_key (str) - the subscription key of the product that user was created for
(True, data)
Tuple.
await
create_api_key( uuid, subscription_key )
Method in charge of creating API KEY from wallet provider
uuid (str) - a valid UUID version 4
subscription_key (str) - the subscription key of the product that user was created for
(True, data)
Tuple
get_reference_id()
Method to create UUID version 4
UUID version 4
Str
is_sandbox()
method to turn on sandbox environment
If you intend to run in sandbox environment, make sure to call this method before any type of request
basic_token( apiuser, apikey )
Method to create basic token from API USER & API KEY
apiuser (str) - the API USER
apikey (str) - the API KEY
Basic token
str
bearer_token( token )
Method to convert access token to Bearer token
token (str) - the authentification token
Bearer token
str