Refund Payment Params
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.
Constructors
Link copied to clipboard
constructor(forageVaultElement: ForageVaultElement<ElementState>, paymentRef: String, amount: Float, reason: String, metadata: Map<String, String>? = null)
Properties
Link copied to clipboard
A reference to a ForageVaultElement instance (either a ForagePINEditText or a ForagePinPad)..
Link copied to clipboard
Required. A unique string identifier for a previously created Payment
in Forage's database, returned by the Create a Payment
endpoint.