// orderHeader.setOrderStatus(calcStatus(orderHeader));
}
public void authorizeOrder(PaymentEngine paymentEngine, HttpServletRequest request) throws AuthorizationException, PaymentException, Exception {
if (!isOpen(orderHeader)) {
throw new PaymentException("Order is not open");
}
if (!shoppingCart.isCashPaymentOrder()) {
paymentEngine.setCreditCardInfo(creditCardInfo);
shoppingCart.getPaymentEngine().authorizePayment(orderHeader, request);
PaymentTran paymentTran = new PaymentTran();