Sale

constructor(merchant: SDKMerchant, establishment: SDKEstablishment, ticketNumber: String, terminalId: String, fallbackEnabled: Boolean, refNumber: String, additionalCardData: SDKAdditionalCardData, timeZone: TimeZone, authToken: SDKAuthenticationToken, installments: Int = 1, paymentPlan: String? = null, externalData: String? = null, updatedAmount: BigDecimal? = null, accountType: SDKAccountType? = null, applicationKey: String)

Parameters

merchant

: data of merchant doing the transaction

establishment

: data of establishment where transaction is taking place

ticketNumber

: Ticket number, must be a string "number" between '0000' and '9999'

terminalId

transaction's TerminalId

fallbackEnabled

defines if fallback is enabled for this transaction

refNumber

: Transaction ID. Must be UNIQUE

additionalCardData

: Additional card data (Brand, Type, and CVV)

timeZone

: timeZone for this sale

authToken

: The authentication token to be used in this transaction

installments

: number of installments of this sale. Optional, if none is passed, will use 1 as default

paymentPlan

: paymentPlan code identifier. Option. If none is passed, will use null as default

externalData

: external data to use for the transaction

updatedAmount

: Updates the amount sent to the processor regardless of the one sent to the reader

accountType

: The account type (CC or CA)

applicationKey

: application key to use for the transaction