CollectionService
Retrofit service interface for the MTN MOMO Collection product API.
Extends CommonService with collection-specific operations: request-to-pay and request-to-withdraw.
Functions
Cancels a pending invoice before it is paid or expires.
Cancels an active pre-approval, immediately revoking the merchant's ability to debit the payer's wallet without per-transaction consent.
Creates a Collection invoice, prompting the Invoice.intendedPayer to pay via their wallet.
Creates a Collection payment (V2). Poll getPaymentStatus with the same uuid as the reference ID to check the outcome.
Creates a pre-approval, allowing the merchant to charge the PreApproval.payer's wallet without per-transaction prompts until the pre-approval expires.
Makes a request to get the Account Balance. This only works with the io.rekast.sdk.utils.ProductTypes.COLLECTION. It seems to break with the other API product type.
Makes a request to get the Account Balance in a specific currency. This only works with the io.rekast.sdk.utils.ProductTypes.COLLECTION. It seems to break with the other API product type. Use EUR as the currency on sandbox
Retrieves the list of approved pre-approvals for a given account holder.
Makes a request to get the Basic ApiUser Info.
Retrieves the current status of a previously created invoice.
Retrieves the current status of a previously created Collection payment.
Retrieves the current status of a previously created pre-approval.
Makes a request to get the ApiUser Info with Consent.
Initiates a request-to-pay, prompting the specified payer to approve a payment.
Makes a request to send a request-to-pay delivery notification.
Retrieves the status of a previously initiated request-to-pay transaction.
Initiates a request-to-withdraw, prompting the specified payer to approve a withdrawal.
Retrieves the status of a previously initiated request-to-withdraw transaction.
Makes a request to check the account holder status.