On This Page
Check Transaction Status Using the lookupTransaction Method
lookupTransaction
Method 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. Follow these steps to request a check transaction status.
- Use thelookupTransactionmethod to find the transaction details.let result = await mposUI.lookupTransaction(forID: "transactionIdentifier")
- After the activity is complete, you can view the results of the activity.switch result { case .success(let transaction): print("Lookup successful for id %@", transaction.identifier) case .notFound: print("Transaction not found.") case .networkError(let developerInfo): print("Lookup failed. Info: %@", developerInfo) case .unexepcted(let developerInfo): print("Lookup failed. Info: %@", developerInfo) }
- To view the full transaction details, access thetransactionobject.