LOG.debug("Setting ButtonSource to [" + JavaCommerce.VERSION + "]");
}
dpReq.getDoDirectPaymentRequestDetails().getPaymentDetails().setButtonSource(JavaCommerce.VERSION);
}
else if (_request instanceof DoExpressCheckoutPaymentRequestType) {
DoExpressCheckoutPaymentRequestType ecReq = (DoExpressCheckoutPaymentRequestType) _request;
if (ecReq.getDoExpressCheckoutPaymentRequestDetails() == null) {
ecReq.setDoExpressCheckoutPaymentRequestDetails(new DoExpressCheckoutPaymentRequestDetailsType());
}
if (ecReq.getDoExpressCheckoutPaymentRequestDetails().getPaymentDetails() == null) {
ecReq.getDoExpressCheckoutPaymentRequestDetails().setPaymentDetails(new PaymentDetailsType());
}
if (LOG.isDebugEnabled()) {
LOG.debug("Setting ButtonSource to [" + JavaCommerce.VERSION + "]");
}
ecReq.getDoExpressCheckoutPaymentRequestDetails().getPaymentDetails().setButtonSource(JavaCommerce.VERSION);
}
else if (_request instanceof BillUserRequestType) {
BillUserRequestType buReq = (BillUserRequestType) _request;
if (buReq.getMerchantPullPaymentDetails() == null) {
buReq.setMerchantPullPaymentDetails(new MerchantPullPaymentType());