if (LOG.isDebugEnabled()) {
LOG.debug("Added " + lineNum + " items to the cart.");
}
checkoutCart.setShoppingCart(cart);
CheckoutFlowSupport flowSupport = new CheckoutFlowSupport();
MerchantCheckoutFlowSupport mcfs = new MerchantCheckoutFlowSupport();
if (_request.getParameter(PARAM_CONTINUE_SHOPPING_URL) != null) {
mcfs.setContinueShoppingUrl(_request.getParameter(PARAM_CONTINUE_SHOPPING_URL));
}
if (_request.getParameter(PARAM_EDIT_CART_URL) != null) {
mcfs.setEditCartUrl(_request.getParameter(PARAM_EDIT_CART_URL));
}
flowSupport.setMerchantCheckoutFlowSupport(mcfs);
checkoutCart.setCheckoutFlowSupport(flowSupport);
return checkoutCart;
}