refundPayment

abstract fun refundPayment(paymentId: GatewayPaymentId, amount: Int, currency: String, allocatedLineItems: List<AllocatedLineItem>? = null): RefundResultSubscription

Refunds the payment for a given com.teya.unifiedepossdk.models.GatewayPaymentId previously returned via PaymentStateSubscription.PaymentStateDetails.gatewayPaymentId.

Return

A subscription RefundResultSubscription to the refund result.

Parameters

paymentId

com.teya.unifiedepossdk.models.GatewayPaymentId corresponding to the payment to refund.

amount

The amount to be refunded, in the smallest unit of the currency (e.g., cents).

currency

The ISO 4217 currency code (e.g., "GBP", "EUR").

allocatedLineItems

Optional list of AllocatedLineItem objects included in the refund.

See also