Subversion Repositories SmartDukaan

Rev

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

Rev 1034 Rev 1128
Line 67... Line 67...
67
    	}
67
    	}
68
    	long addressId = Long.parseLong(addressIdString);
68
    	long addressId = Long.parseLong(addressIdString);
69
    	long currentCartId = userinfo.getCartId();
69
    	long currentCartId = userinfo.getCartId();
70
    	try{
70
    	try{
71
    		if(!createOrdersAndPayment(addressId, currentCartId)){
71
    		if(!createOrdersAndPayment(addressId, currentCartId)){
72
    			addActionError("We are experiencing problem. Please try later.");
72
    			addActionError("We are experiencing some problems. Please try later.");
73
    			return "shipping-redirect";
73
    			return "shipping-redirect";
74
    		}
74
    		}
75
    	}catch (Exception e) {
75
    	}catch (Exception e) {
76
    		addActionError("We are experiencing problem. Please try later.");
76
    		addActionError("We are experiencing some problems. Please try later.");
77
    		log.error("Exception in createOrders function. Something want wrong.");
77
    		log.error("Exception in createOrders function. Something want wrong.");
78
    		e.printStackTrace();
78
    		e.printStackTrace();
79
    		return "shipping-redirect";
79
    		return "shipping-redirect";
80
		}
80
		}
81
		
81