CapturePaymentParams

data class CapturePaymentParams(val forageVaultElement: ForageVaultElement<ElementState>, val paymentRef: String, val interaction: CardholderInteraction)

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

Constructors

Link copied to clipboard
constructor(forageVaultElement: ForageVaultElement<ElementState>, paymentRef: 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 Payment in Forage's database, returned by the Create a Payment endpoint.