Continue Last Transaction

Overview

iClient also provides users with the optional “Continue Last Transaction” function. This function allows the POS to attempt to continue or resume the last transaction that was initiated by the POS. This is useful where the POS:

  1. Loses track of the ongoing transaction due to, for example, the browser being refreshed or closed. The use of this function allows the POS to resume keeping track of the status of the transaction from the current status that it is on on the terminal.The benefits of this are:   
    • That the result of the transaction is also received and registered by the POS, thereby removing an occurrence that would have had an adverse effect on reconciliation between the POS and the Tyro reporting.   
    • It prevents error- or exception causing scenarios from arising where the POS is expecting a response from the terminal and the required response is not provided due to the above circumstances.
  2. It needs to confirm the result of the previous transaction.

Specification

Function Definition Purpose Parameters
continueLastTransaction (transactionCallbacks) Instructs the terminal to send the status update from the last transaction transactionCallbacks (Object) - The set of callback functions to provide feedback and the transaction result, please refer to the Transaction Callbacks section for more details.

Example Code

Copy
Copied
function doContinueLastTransaction()
{
    iclient.continueLastTransaction({
        receiptCallback: receiptCallbackImpl,
        transactionCompleteCallback: transactionCompleteCallbackImpl
    });
}
Copyright © Tyro Payments 2019-2022. All right reserved.