PurchaseParams

data class PurchaseParams(val amount: String, val customMetaData: List<StringKeyValue> = emptyList(), val timeOut: Int = 0, val currency: Currency, val type: PaymentType) : Parcelable

Data class representing the parameters of a purchase transaction started via su.ips.pos_payment_app.ActionInterface.purchaseWithParams.

Constructors

Link copied to clipboard
constructor(amount: String, customMetaData: List<StringKeyValue> = emptyList(), timeOut: Int = 0, currency: Currency, type: PaymentType)

Properties

Link copied to clipboard
val amount: String

The amount of the purchase, in kopecks. For example, 100 == 1 ruble.

Link copied to clipboard

The transaction currency, e.g. Currency.RussianRouble.

Link copied to clipboard

A list of key-value pairs containing additional info for the transaction. A list (not a Map) for compatibility with api 22-23 without desugar.

Link copied to clipboard
val timeOut: Int

Card wait timeout in seconds. 0 uses the POS default (60 seconds).

Link copied to clipboard

The payment type: card only, QR only, or both (see PaymentType).