MomoTransaction

data class MomoTransaction(var amount: String, var currency: String, var financialTransactionId: String? = "", var externalId: String, var payee: AccountHolder? = null, var payer: AccountHolder? = null, var payerMessage: String, var payeeNote: String, var status: String? = "", var reason: String? = "", var referenceIdToRefund: String? = "")

Represents a MTN MOMO transaction used for payments, withdrawals, deposits, transfers, and refunds.

Constructors

Link copied to clipboard
constructor(amount: String, currency: String, financialTransactionId: String? = "", externalId: String, payee: AccountHolder? = null, payer: AccountHolder? = null, payerMessage: String, payeeNote: String, status: String? = "", reason: String? = "", referenceIdToRefund: String? = "")

Properties

Link copied to clipboard

The transaction amount as a string.

Link copied to clipboard

The ISO currency code for the transaction (e.g., EUR, UGX).

Link copied to clipboard

A caller-assigned external reference ID for correlating the transaction on the integrator side.

Link copied to clipboard

The unique financial transaction ID assigned by the MTN MOMO system, populated after the transaction completes.

Link copied to clipboard

The account holder receiving the funds; populated for disbursement and transfer operations.

Link copied to clipboard

A note visible to the payee describing the purpose of the transaction.

Link copied to clipboard

The account holder sending the funds; populated for collection operations.

Link copied to clipboard

A message visible to the payer describing the purpose of the transaction.

Link copied to clipboard

The failure reason when the transaction status is FAILED.

Link copied to clipboard

The reference ID of the original transaction to refund; used only in refund operations.

Link copied to clipboard

The current status of the transaction (see io.rekast.sdk.utils.TransactionStatus).