TransactionListener

Implement TransactionListener to be notified when a transaction ends. TransactionListener will notify you about the success, error or cancel state of the processed transaction.

Functions

Link copied to clipboard
open fun onTransactionCancel(mobileToken: String)

This is called after a transaction has been cancelled. This callback can be used to cancel any on-going process involving the transaction.

Link copied to clipboard
abstract fun onTransactionError(exception: TransactionException)

This is called after a transaction fails or encounters an error. Keep in mind that the SDK shows the error to the user before this is invoked. Therefore, this callback can be used to cancel any on-going process involving the transaction.

Link copied to clipboard

This is called after a transaction has been successfully completed. This callback provides details about the transaction.