Subversion Repositories SmartDukaan

Rev

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

Rev 2183 Rev 2193
Line 14... Line 14...
14
import in.shop2020.model.v1.user.ShoppingCartException;
14
import in.shop2020.model.v1.user.ShoppingCartException;
15
import in.shop2020.model.v1.user.UserAffiliateException;
15
import in.shop2020.model.v1.user.UserAffiliateException;
16
import in.shop2020.payments.PaymentException;
16
import in.shop2020.payments.PaymentException;
17
import in.shop2020.serving.interceptors.TrackingInterceptor;
17
import in.shop2020.serving.interceptors.TrackingInterceptor;
18
import in.shop2020.serving.utils.DataLogger;
18
import in.shop2020.serving.utils.DataLogger;
-
 
19
import in.shop2020.serving.utils.FormattingUtils;
19
import in.shop2020.serving.utils.DataLogger.Event;
20
import in.shop2020.serving.utils.DataLogger.Event;
20
import in.shop2020.thrift.clients.PaymentServiceClient;
21
import in.shop2020.thrift.clients.PaymentServiceClient;
21
import in.shop2020.thrift.clients.TransactionServiceClient;
22
import in.shop2020.thrift.clients.TransactionServiceClient;
22
import in.shop2020.thrift.clients.UserContextServiceClient;
23
import in.shop2020.thrift.clients.UserContextServiceClient;
23
 
24
 
Line 29... Line 30...
29
 
30
 
30
public class PaySuccessController extends BaseController{
31
public class PaySuccessController extends BaseController{
31
	private static final long serialVersionUID = 1L;
32
	private static final long serialVersionUID = 1L;
32
 
33
 
33
	private static Logger log = Logger.getLogger(Class.class);
34
	private static Logger log = Logger.getLogger(Class.class);
-
 
35
	private FormattingUtils formattingUtils = new FormattingUtils();
-
 
36
    
34
	
37
	
35
	long merchantPaymentId;
38
	long merchantPaymentId;
36
	List<Order> orders = null;
39
	List<Order> orders = null;
37
	String message = null;
40
	String message = null;
38
	
41
	
Line 93... Line 96...
93
		DataLogger.logData(Event.PAYMENT_SUCCESS.name(), session.getId(), Long.toString(userinfo.getUserId()), userinfo.getEmail(), Long.toString(merchantPaymentId));
96
		DataLogger.logData(Event.PAYMENT_SUCCESS.name(), session.getId(), Long.toString(userinfo.getUserId()), userinfo.getEmail(), Long.toString(merchantPaymentId));
94
		
97
		
95
		return "index";
98
		return "index";
96
	}
99
	}
97
	
100
	
-
 
101
	public String formatPrice(double price)    {
-
 
102
	    return formattingUtils.formatPrice(price);
98
	
103
	}
99
	
104
	
100
	public List<Order> getOrders(){
105
	public List<Order> getOrders(){
101
		return this.orders;
106
		return this.orders;
102
	}
107
	}
103
	
108
	
104
	public String getMessage(){
109
	public String getMessage(){
105
		return this.message;
110
		return this.message;
106
	}
111
	}	
107
	
-
 
108
}
112
}
109
113