Package-level declarations

Functions

Link copied to clipboard
fun ConfigCard(titleRes: Int, config: SampleConfig, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)

A card that displays the SDK's static environment configuration — the target environment, provider callback host, API versions, and API user ID. Shared by the Setup and Settings screens so the two render the same set of fields consistently.

Link copied to clipboard
fun DepositStatusDisplayComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, title: String, status: ERROR CLASS: Symbol not found for MutableLiveData<ERROR CLASS: Symbol not found for DepositStatus?>)

Renders a read-only summary of a Disbursements deposit status inside a card: amount, currency, financial transaction ID, external ID, payee, message, note, status, and failure reason. Fields that are null or blank are omitted automatically.

Link copied to clipboard
fun LabeledField(label: String, value: String, onValueChange: (String) -> Unit, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, keyboardType: ERROR CLASS: Symbol not found for KeyboardType = KeyboardType.Text, singleLine: Boolean = true, imeAction: ERROR CLASS: Symbol not found for ImeAction = ImeAction.Next)

A labeled outlined text field styled with the app's field defaults.

Link copied to clipboard
fun OperationActionButton(text: String, onClick: () -> Unit, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, enabled: Boolean = true, backgroundColor: ERROR CLASS: Symbol not found for Color = MaterialTheme.colors.secondary, contentColor: ERROR CLASS: Symbol not found for Color = MaterialTheme.colors.onSecondary)

A full-width primary action button using the MTN accent color by default.

Link copied to clipboard
fun OperationConsole(result: String?, hint: String, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)

A console-style result card that shows the outcome of the last operation (a reference ID, a status payload, or an error), or a hint when nothing has run yet.

Link copied to clipboard
fun PaymentDataScreenComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, title: String, submitButtonText: String, phoneNumber: String, financialId: String, showFinancialId: Boolean = true, referenceIdToRefund: String, showReferenceIdToRefund: Boolean = true, amount: String, paymentMessage: String, paymentNote: String, deliveryNote: String, showDeliveryTextField: Boolean = true, onRequestPayButtonClicked: () -> Unit, onPhoneNumberUpdated: (String) -> Unit, onFinancialIdUpdated: (String) -> Unit, onReferenceIdToRefundUpdated: (String) -> Unit, onAmountUpdated: (String) -> Unit, onPayerMessageUpdated: (String) -> Unit, onPayerNoteUpdated: (String) -> Unit, onDeliveryNoteUpdated: (String) -> Unit)

Renders a payment data capture form inside a design-system MomoCard, with conditionally shown fields for financial ID, reference ID to refund, and delivery note, followed by a submit button.

Link copied to clipboard
fun RefundStatusDisplayComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, title: String, status: ERROR CLASS: Symbol not found for MutableLiveData<ERROR CLASS: Symbol not found for RefundStatus?>)

Renders a read-only summary of a Disbursements refund status inside a card: amount, currency, financial transaction ID, external ID, payee, message, note, status, and failure reason. Fields that are null or blank are omitted automatically.

Link copied to clipboard
fun RequestToPayStatusDisplayComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, title: String, status: ERROR CLASS: Symbol not found for MutableLiveData<ERROR CLASS: Symbol not found for RequestToPayStatus?>)

Renders a read-only summary of a Collection request-to-pay status inside a card: amount, currency, financial transaction ID, external ID, payer, message, note, status, and failure reason. Fields that are null or blank are omitted automatically.

Link copied to clipboard
fun RequestToWithdrawStatusDisplayComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, title: String, status: ERROR CLASS: Symbol not found for MutableLiveData<ERROR CLASS: Symbol not found for RequestToWithdrawStatus?>)

Renders a read-only summary of a Collection request-to-withdraw status inside a card: amount, currency, financial transaction ID, external ID, payer, message, note, status, and failure reason. Fields that are null or blank are omitted automatically.

Link copied to clipboard
fun TransferStatusDisplayComponent(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, title: String, status: ERROR CLASS: Symbol not found for MutableLiveData<ERROR CLASS: Symbol not found for TransferStatus?>)

Renders a read-only summary of a transfer status inside a card: amount, currency, financial transaction ID, external ID, payee, message, note, status, and failure reason. Fields that are null or blank are omitted automatically.