Syntax
Transaction
verifyTransaction
(
ITransaction
request
,
boolean
checkExpiry
,
Integer...
allowedStatus
) throws TransactionFailedException
Parameters
-
request –
the MoneyRequest to process
-
checkExpiry –
true to check the transaction's expiration; false to ignore it
-
allowedStatus –
the allowed Transaction.Status, the Money Transaction status must be in one of them - if at least one status is specified, the transaction's error code is checked to be 0; if no status is specified, neither the status nor the error code is checked
Returns
the referenced MoneyTransaction
Exceptions
-
TransactionFailedException –
if verification fails
Usage
Retrieves the referenced
Money Transaction
, locks it and performs basic checks on the transaction:
- Referenced Transaction exists and is (or refers to) a Money Transaction
- The Money Transaction has expired
- The Money Transaction is in the requested status with error code 0 (if any status is specified)
- The Money Transaction has expired (if requested)
If any violation is detected, the error will be set using
setError(int, Object[])
.
the referenced MoneyTransaction