Before refunds can be accessed, your POS administrators must first set a refund password. Please see TyroSettingsView for more details.
Create a TransactionDetail and invoke tapToPaySdk.refundPayment() function to initiate a refund.
Transaction results will be returned in a TransactionOutcome object.
public func refundPayment(transactionDetail: TyroTapToPaySDK.TransactionDetail) async throws -> TyroTapToPaySDK.TransactionOutcomeSee TransactionDetail.
transactionDetailTransactionDetailrequired
The request parameters for the transaction
Returns a TransactionOutcome containing detailed information about the result of the refund transaction.
See TransactionOutcome.
It is strongly recommended to handle errors thrown by tapToPaySDK.refundPayment() otherwise your App will crash.
Throws TapToPaySDKError.transactionError when there was an issue with the transaction.
See TapToPaySDKError for more details on errors thrown.