on Transaction Error
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.
You may also use the error details provided here and display it the way you want when suppressing the error message within the TransactionOptions.
Parameters
exception
The exception that occurred.