CheckBalanceParams

data class CheckBalanceParams(val forageVaultElement: ForageVaultElement<ElementState>, val paymentMethodRef: String, val interaction: CardholderInteraction)

A model that represents the parameters that Forage requires to check a card's balance. CheckBalanceParams are passed to the checkBalance method.

Constructors

Link copied to clipboard
constructor(forageVaultElement: ForageVaultElement<ElementState>, paymentMethodRef: String, interaction: CardholderInteraction)

Properties

Link copied to clipboard
Link copied to clipboard

Represents the method of interaction between the cardholder and the terminal. This includes key card details such as PAN (Primary Account Number) and Track 2 data. Use the appropriate implementation of CardholderInteraction based on how the card information is obtained.

For example:
- ManualEntryInteraction: Use when the card details are entered manually.
- MagSwipeInteraction: Use when the card is swiped using the magnetic stripe reader.

Link copied to clipboard

A unique string identifier for a previously created PaymentMethod in Forage's database, found in the response from a call to the Create a PaymentMethod endpoint.