Package-level declarations

Types

Link copied to clipboard
data class CapturePaymentParams(val forageVaultElement: ForageVaultElement<ElementState>, val paymentRef: String)

A model that represents the parameters that Forage requires to capture a payment. CapturePaymentParams are passed to the capturePayment method.

Link copied to clipboard
data class CheckBalanceParams(val forageVaultElement: ForageVaultElement<ElementState>, val paymentMethodRef: String)

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

Link copied to clipboard
data class DeferPaymentCaptureParams(val forageVaultElement: ForageVaultElement<ElementState>, val paymentRef: String)

A model that represents the parameters that Forage requires to collect a card PIN and defer the capture of the payment to the server. DeferPaymentCaptureParams are passed to the deferPaymentCapture method.

Link copied to clipboard
data class DeferPaymentRefundParams(val forageVaultElement: ForageVaultElement<ElementState>, val paymentRef: String)

A model that represents the parameters that Forage requires to collect a card PIN and defer the refund of the payment to the server. DeferPaymentRefundParams are passed to the deferPaymentRefund method.

Link copied to clipboard

The entry point for in-store POS Terminal transactions.

Link copied to clipboard
data class RefundPaymentParams(val forageVaultElement: ForageVaultElement<ElementState>, val paymentRef: String, val amount: Float, val reason: String, val metadata: Map<String, String>? = null)

A model that represents the parameters that ForageTerminalSDK requires to refund a Payment. RefundPaymentParams are passed to the refundPayment method.

Link copied to clipboard
data class TokenizeMagSwipeParams(val forageConfig: ForageConfig, 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. TokenizeMagSwipeParams are passed to the tokenizeCard method.

Link copied to clipboard
data class TokenizeManualEntryParams(val foragePanEditText: ForagePANEditText, val reusable: Boolean = true)

A model that represents the parameters that ForageTerminalSDK requires to tokenize a card by entering the card number into a ForagePANEditText. This data class is not supported for online-only transactions. TokenizeManualEntryParams are passed to the tokenizeCard method.