PosPaymentSdkActionExecutor

Interface for executing various actions is related to POS External payment SDK.

Each method returns a Result which can either be a Result.Success containing an SdkSuccessAnswer subtype on success, or a Result.Error indicating failure.

Functions

Link copied to clipboard
abstract suspend fun cancel(amount: String, rrn: String): Flow<PurchaseResult<SdkSuccessAnswer.Cancel>>

Cancels a transaction with the specified amount and RRN.

Link copied to clipboard

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

Link copied to clipboard

Deletes an item from the black list by PAN and source.

Link copied to clipboard

Deletes an item from the offline queue by invoice.

Link copied to clipboard

Initiates an auto batch operation. A reconciliation report will always be printed, whether or not purchases were made.

Link copied to clipboard

Fetches review information.

Link copied to clipboard

Retrieves the authentication status.

Link copied to clipboard

Retrieves the credentials.

Link copied to clipboard

Gets the current offline black list.

Link copied to clipboard

Retrieves the current offline mode status.

Link copied to clipboard

Gets the current offline queue.

Link copied to clipboard
abstract suspend fun getReceiptData(reference: String): Result<SdkSuccessAnswer.GetReceiptData>

Retrieve receipt data for the specified reference.

Link copied to clipboard

Gets the current status of automatic offline operations posting.

Link copied to clipboard

Gets the current status of black list checking offline operations.

Link copied to clipboard
abstract suspend fun login(login: String, password: String): Result<SdkSuccessAnswer.Login>

Logs in with the provided credentials.

Link copied to clipboard
abstract suspend fun logout(): Result<SdkSuccessAnswer.Logout>

Logs out the current user.

Link copied to clipboard

Posts an offline operation to the server.

Link copied to clipboard
abstract suspend fun purchase(amount: String, customMetaData: Map<String, String> = emptyMap()): Flow<PurchaseResult<SdkSuccessAnswer.Purchase>>

Initiates a purchase transaction with the specified amount.

Link copied to clipboard

Sets automatic posting of offline operations.

Link copied to clipboard

Sets black list checking of offline operations.

Link copied to clipboard
abstract suspend fun setOfflineMode(offlineMode: Boolean): Result<SdkSuccessAnswer.SetOfflineMode>

Sets the offline mode status.

Link copied to clipboard

Initiates a stop current transaction.

Link copied to clipboard

Attempts to auto batch the previous session. Reconciliation report will be printed only if purchases were made.