writeException("DP-1003", "Error executing DoDirectPayment API call", null, e, _response);
return;
}
DoDirectPaymentRequestDetailsType request = APIUtil.buildDoDirectPaymentRequestDetails(_request);
try {
DoDirectPaymentResponseType response = API.doDirectPayment(request, credentials);
if (LOG.isDebugEnabled()) {
LOG.debug("DoDirectPayment API call returned [" + response.getAck() + "], building XML.");
}
writeObject(response, _response);
if (LOG.isDebugEnabled()) {
LOG.debug("XML written to Output Stream");
}