Cancel a transaction by setting an error code to it.
Syntax
void
cancelTransaction
(
final ITransaction
referencedTransaction
,
final Integer
errorCode
,
final Long
actorId
) throws MobiliserServiceException, DataAccessException, TransactionException
Parameters
-
referencedTransaction –
the transaction that must be cancelled.
-
errorCode –
the error code to set with the transaction.
-
actorId –
the current actor
Exceptions
-
MobiliserServiceException –
if canceling the transaction fails for some reason (business rules)
-
DataAccessException –
if some error occurs communicating / writing / reading persistent storage
-
TransactionException –
if some error occurs while handling the transactions related to persistent storage
Usage
No further processing is applied, if you need to cancel a transaction that is already authorized or captured, use the respective cancellation methods.