Subversion Repositories SmartDukaan

Rev

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

Rev 6500 Rev 6569
Line 88... Line 88...
88
		Calendar cal = Calendar.getInstance();
88
		Calendar cal = Calendar.getInstance();
89
		cal.add(Calendar.DATE, 60);
89
		cal.add(Calendar.DATE, 60);
90
		Date endOn = cal.getTime();
90
		Date endOn = cal.getTime();
91
		if(!(StringUtils.isEmpty(userEmail) || amount == null) ) {
91
		if(!(StringUtils.isEmpty(userEmail) || amount == null) ) {
92
			try {
92
			try {
93
				coupon = pClient.createCoupon(type, endOn.getTime(), userEmail, amount, false, 1);
93
				coupon = pClient.createCoupon(type, endOn.getTime(), userEmail, amount, false, 1, null);
94
			} catch (Exception e){
94
			} catch (Exception e){
95
				return "authsuccess";
95
				return "authsuccess";
96
			}
96
			}
97
		}
97
		}
98
		return "authsuccess";	
98
		return "authsuccess";