Sale

class Sale(val cardData: SDKTransactionCard, confirmJsonFn: (SDKConfirmationJson) -> Unit, rejectFn: () -> Unit, logContextFactory: LogContextFactory) : SDKV2TransactionState.ConfirmTransaction

This is the state previous to going online for a SALE Transaction, being cardData the SDKTransactionCard that will be sent. SDKTransactionIntent will be at this after a card was successfully read, and it's the last state when the SDKTransactionIntent can be aborted. This state is abortable.

Parameters

cardData

Data of the card to confirm

Constructors

Link copied to clipboard
constructor(cardData: SDKTransactionCard, confirmJsonFn: (SDKConfirmationJson) -> Unit, rejectFn: () -> Unit, logContextFactory: LogContextFactory)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun confirm(confirmation: SDKConfirmationJson)

Confirms the transaction with the provided JSON data.

Link copied to clipboard
fun reject()

Calling reject will discard the read data, and start the SDKTransactionIntent over giving a chance of using a different card.