getLastTransactionResult

Gets the result of the last completed transaction. The response will contain the same data as the original response to .doTransaction.

The response can be null if the result of the previous transaction is not available. This happens if there has not been a previous transaction, or if a new transaction has been started, but not completed.

Note that this method cannot be called while a transaction is in progress. If it is called then, it will return false.

This method requires Westpay Payment Application v2.0.11 or higher.

Return

true if the request was sent successfully, otherwise false.

Parameters

response

A callback that will be called with the results of the last completed transaction. This response contains the same data that is contained in the transaction response. If the callback is not given, the method returns false.