return executeTransaction(logOperation, userId, new BigDecimal(0), transaction);
}
private Result<Transaction> executeTransaction(String logOperation, DbId<User> userId, BigDecimal amount, Transaction transaction)
{
BasicXmlDocument response = net.authorize.util.HttpClient.executeXML(environment, transaction);
if (log.isInfoEnabled()) {
BasicXmlDocument request = transaction.getCurrentRequest();
if (request != null) {
log.info(request.dump());
log.info(response.dump());
}
}
Result<Transaction> result = Result.createResult(transaction, response);