FILTER BY TAG

Check Transaction Status Using
lookupTransaction

To submit a check transaction status request, you must have the
transactionIdentifier
value for the transaction that you want to check.
Use the check transaction status request to obtain response data for a transaction that was lost or timed out.
When you send the request using the
lookupTransaction
method, the transaction details are shown in the
transaction
object.
  1. Create the online payment service and call
    lookupTransaction(forID:)
    with the transaction identifier.
    // Throws MposUIReaderError.notActivated if device is not activated let online = try await reader.mposUIOnline() let result = await online.lookupTransaction(forID: "transactionIdentifier") switch result { case .success(let transaction): print("Transaction found: \(transaction.identifier)") case .notFound: print("Transaction not found.") case .networkError(let developerInfo): print("Network error. Info: \(developerInfo)") case .unexpected(let developerInfo): print("Unexpected error. Info: \(developerInfo)") }