Subversion Repositories SmartDukaan

Rev

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

Rev 2692 Rev 3126
Line 2... Line 2...
2
 
2
 
3
import in.shop2020.datalogger.EventType;
3
import in.shop2020.datalogger.EventType;
4
import in.shop2020.model.v1.order.Order;
4
import in.shop2020.model.v1.order.Order;
5
import in.shop2020.model.v1.order.TransactionServiceException;
5
import in.shop2020.model.v1.order.TransactionServiceException;
6
import in.shop2020.payments.PaymentException;
6
import in.shop2020.payments.PaymentException;
7
import in.shop2020.thrift.clients.PaymentServiceClient;
7
import in.shop2020.thrift.clients.PaymentClient;
8
import in.shop2020.thrift.clients.TransactionServiceClient;
8
import in.shop2020.thrift.clients.TransactionClient;
9
import in.shop2020.thrift.clients.UserContextServiceClient;
9
import in.shop2020.thrift.clients.UserClient;
10
import in.shop2020.utils.DataLogger;
10
import in.shop2020.utils.DataLogger;
11
 
11
 
12
import java.io.IOException;
12
import java.io.IOException;
13
import java.util.List;
13
import java.util.List;
14
 
14
 
Line 23... Line 23...
23
})
23
})
24
 
24
 
25
public class PayErrorController extends BaseController{
25
public class PayErrorController extends BaseController{
26
	private static final long serialVersionUID = 1L;
26
	private static final long serialVersionUID = 1L;
27
	private static Logger log = Logger.getLogger(Class.class);
27
	private static Logger log = Logger.getLogger(Class.class);
28
	PaymentServiceClient pclient = null;
28
	PaymentClient pclient = null;
29
	TransactionServiceClient tsc = null;
29
	TransactionClient tsc = null;
30
	UserContextServiceClient usc = null;
30
	UserClient usc = null;
31
	
31
	
32
	long merchantPaymentId;
32
	long merchantPaymentId;
33
	List<Order> orders = null;
33
	List<Order> orders = null;
34
	String message = null;
34
	String message = null;
35
	
35
	
36
	public PayErrorController(){
36
	public PayErrorController(){
37
		super();
37
		super();
38
		try {
38
		try {
39
			pclient = new PaymentServiceClient();
39
			pclient = new PaymentClient();
40
			tsc = new TransactionServiceClient();
40
			tsc = new TransactionClient();
41
			usc = new UserContextServiceClient();
41
			usc = new UserClient();
42
		} catch (Exception e) {
42
		} catch (Exception e) {
43
		    log.error("Could not initialize the paymentservice client");
43
		    log.error("Could not initialize the paymentservice client");
44
		}
44
		}
45
	}
45
	}
46
	
46