PosTokenizeCardParams

data class PosTokenizeCardParams(val posForageConfig: PosForageConfig, val track2Data: String, val reusable: Boolean = true)

A model that represents the parameters that ForageTerminalSDK requires to tokenize a card via a magnetic swipe from a physical POS Terminal. This data class is not supported for online-only transactions. PosTokenizeCardParams are passed to the tokenizeCard method.

Constructors

Link copied to clipboard
constructor(posForageConfig: PosForageConfig, track2Data: String, reusable: Boolean = true)

Properties

Link copied to clipboard

Required. The PosForageConfig configuration details required to authenticate with the Forage API.

Link copied to clipboard
val reusable: Boolean = true

Optional. A boolean that indicates whether the same card can be used to create multiple payments. Defaults to true.

Link copied to clipboard

Required. The information encoded on Track 2 of the card’s magnetic stripe, excluding the start and stop sentinels and any LRC characters. Example value: "123456789123456789=123456789123"