processRefund

fun processRefund(refundParams: RefundParameters, collectConfig: CollectRefundConfiguration = CollectRefundConfiguration.Builder().build(), callback: RefundCallback): Cancelable

Processes a refund by collecting a payment method and confirming the refund. This is a convenience method that combines the two-step process of Terminal.collectRefundPaymentMethod collecting a payment method and Terminal.confirmRefund confirming the refund into a single call.

Return

A Cancelable that allows the operation to be canceled when the SDK is not waiting for a network response.

Parameters

refundParams

The RefundParameters object that describes how the refund will be created.

collectConfig

An optional CollectRefundConfiguration to configure per-refund overrides.

callback

The callback to be called when the command completes.