On This Page
Check Transaction Status
Use this information to check the status of a transaction.
Check Transaction Status Using the showSummary Method
showSummary
MethodTo 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
showSummary
method, the transaction details are shown on the
Summary screen. Follow these steps to request a check transaction status.
- Use theshowSummarymethod to open the Summary screen.let summary = await mposUi.showSummary(forID: "transactionIdentifier")
- After the activity is complete, you can view the results of the activity.switch summary { case .success(let transaction): print("Summary screen was shown for transaction with id %@", transaction.identifier) case .failure(let error): print("Error checking transaction status or displaying summary screen: %@", error.localizedDescription) }
- To view the full transaction details, access thetransactionobject.
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.