On This Page
Refund
Use this information to process a refund for a full or partial transaction amount by using a
reference to the original transaction. This transaction is also called a
linked
refund
. This Acceptance Devices solution also supports stand-alone
credits.- Get the online payment service and callrefundTransaction(withID:partiallyWithAmount:)with the original transaction identifier.// Throws MposUIReaderError.notActivated if device is not activated let online = try await reader.mposUIOnline() let linkedRefund = await online.refundTransaction( withID: "transactionIdentifier", partiallyWithAmount: (Decimal(1.00), .USD) ) switch linkedRefund { case .success(let transaction): print("Refund successful.") case .cancelledByUser: print("Refund cancelled.") case .error(let developerInfo): print("Refund failed. Info: \(developerInfo)") }