Sale

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

This is the state previous 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, confirmFn: (SDKConfirmation.Sale) -> Unit, confirmJsonFn: (SDKConfirmationJson) -> Unit, rejectFn: () -> Unit, logContextFactory: LogContextFactory)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun confirm(confirmation: SDKConfirmation.Sale)
fun confirm(confirmation: SDKConfirmationJson)
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