FILTER BY TAG

Check Transaction Status

Use this information to check the status of a transaction.

Check Transaction Status Using the
showSummary
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
showSummary
method, the transaction details are shown on the Summary screen.
Follow these steps to request a check transaction status.
  1. Use the
    showSummary
    method to open the Summary screen.
    let summary = await mposUi.showSummary(forID: "transactionIdentifier")
  2. 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) }
  3. To view the full transaction details, access the
    transaction
    object.

Check Transaction Status Using the
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.
  1. Use the
    lookupTransaction
    method to find the transaction details.
    let result = await mposUI.lookupTransaction(forID: "transactionIdentifier")
  2. 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) }
  3. To view the full transaction details, access the
    transaction
    object.