Subversion Repositories SmartDukaan

Rev

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

Rev 11829 Rev 11896
Line 45... Line 45...
45
	private static Logger log = Logger.getLogger(Class.class);
45
	private static Logger log = Logger.getLogger(Class.class);
46
	private FormattingUtils formattingUtils = new FormattingUtils();
46
	private FormattingUtils formattingUtils = new FormattingUtils();
47
    
47
    
48
	private boolean isShooglooAff  = false;
48
	private boolean isShooglooAff  = false;
49
	
49
	
-
 
50
	private String storeAffiliate = "Saholic";
-
 
51
	
50
	long merchantPaymentId;
52
	long merchantPaymentId;
51
	long txnId;
53
	long txnId;
52
	List<Order> orders = null;
54
	List<Order> orders = null;
53
	String message = null;
55
	String message = null;
54
 
56
 
Line 78... Line 80...
78
		
80
		
79
		
81
		
80
		try {
82
		try {
81
			txnId = paymentServiceClient.getClient().getPayment(merchantPaymentId).getMerchantTxnId();
83
			txnId = paymentServiceClient.getClient().getPayment(merchantPaymentId).getMerchantTxnId();
82
			orders = transactionServiceClient.getClient().getOrdersForTransaction(txnId, userinfo.getUserId());
84
			orders = transactionServiceClient.getClient().getOrdersForTransaction(txnId, userinfo.getUserId());
-
 
85
			if(transactionServiceClient.getClient().isPrivateDealTransaction(txnId)){
-
 
86
				setStoreAffiliate("Privatedeal");
-
 
87
			}
83
			for(Order order : orders) {
88
			for(Order order : orders) {
84
			    if(order.getInsurer() > 0) {
89
			    if(order.getInsurer() > 0) {
85
			        setAnyOrderInsured(true);
90
			        setAnyOrderInsured(true);
86
			        break;
91
			        break;
87
			    }
92
			    }
Line 184... Line 189...
184
    }
189
    }
185
 
190
 
186
    public boolean isAnyOrderInsured() {
191
    public boolean isAnyOrderInsured() {
187
        return isAnyOrderInsured;
192
        return isAnyOrderInsured;
188
    }
193
    }
-
 
194
 
-
 
195
	public void setStoreAffiliate(String storeAffiliate) {
-
 
196
		this.storeAffiliate = storeAffiliate;
-
 
197
	}
-
 
198
 
-
 
199
	public String getStoreAffiliate() {
-
 
200
		return storeAffiliate;
-
 
201
	}
189
}
202
}
190
203