MagSwipeInteraction

data class MagSwipeInteraction(val track2Data: String) : CardholderInteraction

Represents the details captured during a magnetic swipe card interaction.

This data class is used specifically for scenarios where the card is swiped through a magnetic stripe reader. It is not applicable for other interaction types such as tap or insert.

Constructors

Link copied to clipboard
constructor(track2Data: String)

Properties

Link copied to clipboard
open override val rawPan: String? = null

The Primary Account Number (PAN) of the card, representing the card number.

Link copied to clipboard
open override val track2Data: String

Information from the second track of the card's magnetic stripe, which typically contains the PAN, expiration date, service code, and discretionary data.

Link copied to clipboard
open override val type: CardholderInteractionType

An instance of CardholderInteractionType, indicating the method of card entry, such as swipe, tap, insert, or manual entry.