Subversion Repositories SmartDukaan

Rev

Rev 4453 | Rev 4533 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4453 Rev 4516
Line 93... Line 93...
93
                  
93
                  
94
            // Validate the cart to ensure that we are not accepting payment for
94
            // Validate the cart to ensure that we are not accepting payment for
95
            // an invalid order.
95
            // an invalid order.
96
            errorMsg = userClient.validateCart(cartId, sourceId);
96
            errorMsg = userClient.validateCart(cartId, sourceId);
97
            
97
            
98
 
-
 
99
            Cart cart = userClient.getCart(cartId);
98
            Cart cart = userClient.getCart(cartId);
-
 
99
            
-
 
100
            String couponCode = cart.getCouponCode();
-
 
101
            logger.info("Coupon: " + couponCode);
-
 
102
            
-
 
103
            if(couponCode != null && couponCode.trim().equals("SH911"))	{
-
 
104
            	showCodOption = false;
-
 
105
            }
-
 
106
            
100
            setTotalAmount(cart);
107
            setTotalAmount(cart);
101
            itemIdString = Utils.getItemIdStringInCart(cart);
108
            itemIdString = Utils.getItemIdStringInCart(cart);
102
            
109
            
103
            //Get the line items to check if COD option should be shown.
110
            //Get the line items to check if COD option should be shown.
104
            lineItems = cart.getLines();
111
            lineItems = cart.getLines();