PreApproval
data class PreApproval(val payer: AccountHolder, val payerCurrency: String, val payerMessage: String? = null, val validityTime: Int)
Represents a Collection pre-approval request sent to the MTN MOMO Pre-approval API.
A pre-approval authorises the merchant to debit the payer's account up to an implied amount without requiring explicit per-transaction approval. The authorisation expires after validityTime seconds. Subsequent charges against the pre-approval use the standard Request-to-Pay flow.
Constructors
Link copied to clipboard
constructor(payer: AccountHolder, payerCurrency: String, payerMessage: String? = null, validityTime: Int)
Properties
Link copied to clipboard
The AccountHolder granting the pre-approval.
Link copied to clipboard
The ISO 4217 currency in which the payer's account is denominated (e.g., "EUR").
Link copied to clipboard
A short message displayed to the payer during the pre-approval consent prompt.
Link copied to clipboard
Seconds until the pre-approval expires.