Package-level declarations

Types

Link copied to clipboard
data class SDKBin(val aBin: String)

Information about Bin

Link copied to clipboard
data class SDKConfirmationJson(val json: String, val authToken: String)

Confirmation object needed to continue the transaction online

Link copied to clipboard
data class SDKCurrency(val numericCode: String, val alphabeticCode: String, val symbol: String, val exponent: SDKCurrency.SDKExponent = SDKExponent.TWO)

Information about currency

Link copied to clipboard
data class SDKDeviceInfo(val id: String?, val firmware: String, val serial: String, val serialFull: String, val hardwareVersion: String, val model: SDKDeviceModel, val batteryPercentage: Double? = null, val isCharging: Boolean? = null, val hasPrinter: Boolean)

A connected device information On some devices battery and charging information may not be available, so they are optional

Link copied to clipboard
Link copied to clipboard
data class SDKMoney(val amount: BigDecimal, val currency: SDKCurrency)

Information about transaction amount

Link copied to clipboard
data class SDKPaymentData(val authorizationCode: String)

SdKTransactionIntent Sale successfull result

Link copied to clipboard
sealed class SDKPaymentsFlow

Defines the transaction flow to use when initializing the SDK.

Link copied to clipboard
sealed class SDKTransactionError

Error in an SDKTransactionIntent Will be present in a Recoverable or NonRecoverable state **

Link copied to clipboard
Link copied to clipboard
data class SDKV1Address(val addressLine1: String?, val addressLine2: String?, val city: String, val countryCode: String, val postalCode: String, val state: String)

Address where the transaction is taking place

Link copied to clipboard
data class SDKV1AuthenticationToken(val token: String)

Authentication token to use on transaction confirmation

Link copied to clipboard
data class SDKV1CancelData(val authorizationCode: String)

SdKTransactionIntent Cancel successfull result

Link copied to clipboard
sealed class SDKV1Confirmation

Confirmation object needed to continue the transaction Online

Link copied to clipboard
data class SDKV1Establishment(val address: SDKV1Address?, val businessCategoryCode: String?, val docNumber: String?, val docType: String?, val email: String? = null, val legalName: String, val phoneNumber: String? = null, val tradeName: String?, val type: SDKV1Establishment.Type, val intermediary: SDKV1Establishment? = null)

Establishment where the transaction is taking place

Link copied to clipboard
data class SDKV1Merchant(val id: String, val name: String? = null, val fiid: String? = null, val logicalNetwork: String? = null)

Information about the Merchant doing the transaction

Link copied to clipboard
data class SDKV1RefundData(val authorizationCode: String)

SDKTransactionIntent Refund successfull result

Link copied to clipboard
data class SDKV1Tax(val amount: SDKMoney, val label: String)
Link copied to clipboard
sealed class SDKV1Taxes
Link copied to clipboard

Data required to start a transaction

Link copied to clipboard

Representation of a single SDKV1TransactionState Methods in states can only be called ONCE. Calling a method more than once will result in an SDKFunctionWasConsumedException

Link copied to clipboard
class SDKV1TransactionTotals(val net: SDKMoney, val taxes: SDKV1Taxes, val tip: SDKMoney? = null)

Representation of the total amount of a transaction. This constructor allows the creation of a total amount transaction with taxes.

Link copied to clipboard

Transaction type, can be one of the following:

Link copied to clipboard
data class SDKV2RequiredAction(val type: String, val requiredDataJson: String)

Represents an action required to continue processing the transaction. See Geopagos public documentation website for more details.

Link copied to clipboard
data class SDKV2Total(val total: SDKMoney)

Representation of the total amount for the transaction

Link copied to clipboard
data class SDKV2TransactionData(val paymentIntentId: String)

Data required to start a transaction in the V2 flow.

Link copied to clipboard

Representation of a single SDKV2TransactionState Methods in states can only be called ONCE. Calling a method more than once will result in an SDKFunctionWasConsumedException