DefaultSource
DefaultSource is responsible for handling API calls related to user management and authentication in the MTN MOMO SDK.
This class acts as a bridge between the repository and the authentication service, providing methods to create API users, retrieve user details, create API keys, and obtain access tokens.
Constructors
Functions
Initiates a backchannel (CIBA) authorization request.
Initiates a Remittance cash transfer using the V2 endpoint with optional KYC fields.
Creates a new API key for the specified API user.
Creates a new API user.
Creates a Collection pre-approval, authorising the merchant to charge the payer's wallet without per-transaction prompts until the pre-approval expires.
Obtains an access token for the specified product type.
Retrieves the account balance for a specified product type. This only works with the ProductType.COLLECTION. It seems to break with the other API product type.
Retrieves the account balance in a specific currency. This only works with the ProductType.COLLECTION. It seems to break with the other API product type.
Retrieves the details of an existing API user.
Retrieves the basic user information for a specified MTN MOMO user.
Retrieves the status of a previously initiated Remittance cash transfer.
Retrieves the status of a previously created Collection invoice.
Retrieves an OAuth2 access token for the specified product type.
Retrieves the status of a previously created Collection pre-approval.
Retrieves user information with consent for a specified product type.
Sends a delivery notification for a request to pay.
Sends a delivery notification for a request-to-withdraw transaction.
Validates the status of an account holder.