cancelWithoutCard

abstract suspend fun cancelWithoutCard(amount: String, rrn: String, timeOut: Int? = null): Flow<PurchaseResult<SdkSuccessAnswer.Cancel>>

Cancels a transaction without card with the specified amount and RRN.

Return

Flow emitting a PurchaseResult with SdkSuccessAnswer.Cancel with invoice and receipt details if successful, or a PurchaseResult.Error if the operation fails.

Additionally, the flow can emit intermediate states: - PurchaseResult.InitOperation: Indicates the terminal is being configured. - PurchaseResult.ReaderReady: Indicates the terminal is ready and waiting for the card. - PurchaseResult.Processing: Indicates the transaction is being processed.

Note: These intermediate states will only be emitted when the communication type is set to CommunicationType.AIDL.

Parameters

amount

The amount of the transaction to cancel, in kopecks. For example, 100 == 1 ruble.

rrn

The Retrieval Reference Number (RRN) of the transaction to cancel.

timeOut

Card wait timeout in seconds. null uses the POS default (60 seconds).