detail.setPaymentDetails(0, paymentDetail);
// detail.setPaymentDetails(paymentDetail);
request.setDoExpressCheckoutPaymentRequestDetails(detail);
DoExpressCheckoutPaymentResponseType response = (DoExpressCheckoutPaymentResponseType) caller.call("DoExpressCheckoutPayment", request);
if (!response.getAck().equals(AckCodeType.Success)) {
throw new PaymentException(formatErrorMessage(response));
}
// authCode = response.getDoExpressCheckoutPaymentResponseDetails().getPaymentInfo().getTransactionID();
authCode = response.getDoExpressCheckoutPaymentResponseDetails().getPaymentInfo(0).getTransactionID();
}