FILTER BY TAG

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.
  1. Get the online payment service and call
    refundTransaction(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)") }