Syntax
ITransactionParticipant
verifyVoucherReceipient
(
final Long
authorisationId
,
final Long
actorId
,
final IGenericAuthorisationRequest
request
) throws MobiliserServiceException, DataAccessException, TransactionException
Parameters
-
authorisationId –
the id of the authorization transaction that is being initialized
-
actorId –
the actorId (authenticated user)
-
request –
the authorization request
Exceptions
-
MobiliserServiceException –
if initializing 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
Takes the payee identification from the request and check if the identification already exists in the system, then creates the new payment instrument as
InternalVoucher
. If not, create the new customer with internal voucher as payment instrument.