}
else {
form.setCashPaymentOrder(true);
}
form.setOrderNum(orderNum);
form.setOrderDatetime(formatter.formatFullDate(orderHeader.getOrderDate()));
PaymentGateway paymentGateway = null;
if (paymentGateway != null) {
if (orderHeader.getPaymentGatewayProvider().equals(PayPalEngine.class.getSimpleName())) {
form.setPayPal(true);
}