Skip to main content
When you make a transaction, a communication or technical issue can prevent your POS app from receiving a response. Without this response it is unclear to your staff if the transaction has been processed. They may try to cancel or refund the transaction, or repeat the transaction. Instead, your integration should request the transaction’s status to verify whether the transaction is: If the transaction has been processed you also receive the original transaction response, indicating the result. If you are making frequent transaction status requests then you may have a network connectivity issue. Make sure that your terminal is connected to the internet, and see our network recommendations.

Requirements

Check the transaction status

We recommend that your integration automatically checks the status of a transaction any time it fails to receive a transaction response. Payment requests time out after a while. If you do not receive a payment response (or you receive a response indicating a time-out) after 120 seconds (local integration) or 150 seconds (cloud integration), and the internet connection hasn’t dropped, your integration should automatically check the transaction status. To get the status of a transaction:
  1. Make a Terminal API transaction status request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to TransactionStatus. If you do not include the MessageReference object, you receive a failure response with ErrorCondition NotFound. Use the AdditionalResponse to find the SaleID and ServiceID of the most recent transaction made by the terminal. |
    The following example shows how to check the status of a payment with the ServiceID 29235. TransactionStatusRequest
  2. In the TransactionStatusResponse.Response, check the Result. This indicates whether the transaction has been processed:
    • Success : The transaction has been processed. The original transaction response is also provided.
    • Failure: The transaction has not been processed. The reason is indicated by the ErrorCondition:
      • InProgress : The transaction is still being processed.
      • NotFound : We were not able to find the transaction.
    For an example of each result, see the next sections.

Transaction processed

A TransactionStatusResponse.Response with a Result of Success indicates that the transaction reached an end state: approved, cancelled, or declined. To determine the result of the transaction, use the original transaction response, provided in the RepeatedResponseMessageBody. For example: TransactionStatusResponse for a successful payment
TransactionStatusResponse for a payment cancelled from the POS app

Transaction in progress

A TransactionStatusResponse.Response with an ErrorCondition of InProgress indicates the transaction is still being processed. This is usually due to the terminal waiting for input from the shopper. For example, the shopper is entering their PIN, adding a tip, or selecting currency conversion. When you receive an InProgress response, you can submit repeated transaction status requests in a loop until you receive a response that indicates the transaction reached an end state. There is no need to apply a polling delay, because the terminal will handle that for you. In the TransactionStatusResponse.Response, the AdditionalResponse field includes:
  • tenderReference: The transaction reference provided by the terminal. This is important for reporting purposes.
  • detailedStatus: The tender state, for example, TENDER_CREATED. You can use this to inform the POS system. It is the same information that is provided in the event field in display notifications. This means you can use transaction status requests as an alternative to implementing display notifications.
For an iOS Mobile SDK solution, tenderReference and detailedStatus are not included in the response. The example response below indicates that this transaction is still in-progress. TransactionStatusResponse for an in-progress transaction

Transaction not found

A TransactionStatusResponse.Response with an ErrorCondition of NotFound indicates that we were not able to find the transaction with the SaleID and ServiceID you specified. The AdditionalResponse has Message not found and echoes the category of the transaction (such as Payment), the SaleID, and the ServiceID you specified in the request. When the transaction is not found, this means that either:
  • The POIID, SaleID or ServiceID you specified in the transaction status request are incorrect. Check that you provided the POIID, SaleID, and ServiceID from the original transaction in the TransactionStatusRequest.MessageReference.
  • We did not receive the original transaction request. The cause can be a dropped internet connection or an unexpected power loss. You can retry the original transaction.
The example response below indicates that this transaction was not found. TransactionStatusResponse for a transaction that is not found

See also