}
Debug.logInfo("processAuthTransResult: " + results.toString(),module);
}
private static void processAuthCaptureTransResult(Map<String, Object> processCardResponseContext, Map<String, Object> results) {
ResponseIF response = (ResponseIF) processCardResponseContext.get("processCardResponse");
Boolean authResult = (Boolean) processCardResponseContext.get("authResult");
results.put("authResult", new Boolean(authResult.booleanValue()));
results.put("authFlag", response.getResponseCode());
results.put("authMessage", response.getMessage());
results.put("captureResult", new Boolean(authResult.booleanValue()));
results.put("captureFlag", response.getResponseCode());
results.put("captureMessage", response.getMessage());
results.put("captureRefNum", response.getTxRefNum());
if (authResult.booleanValue()) { //passed
results.put("authCode", response.getAuthCode());
results.put("authRefNum", response.getTxRefNum());
results.put("cvCode", UtilFormatOut.checkNull(response.getCVV2RespCode()));
results.put("avsCode", response.getAVSResponseCode());
results.put("processAmount", new BigDecimal(results.get("processAmount").toString()));
} else {
results.put("authCode", response.getAuthCode());
results.put("processAmount", BigDecimal.ZERO);
results.put("authRefNum", OrbitalPaymentServices.ERROR);
}
Debug.logInfo("processAuthCaptureTransResult: " + results.toString(),module);
}