Subversion Repositories SmartDukaan

Rev

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

Rev 3010 Rev 3126
Line 5... Line 5...
5
import in.shop2020.payments.Attribute;
5
import in.shop2020.payments.Attribute;
6
import in.shop2020.payments.Payment;
6
import in.shop2020.payments.Payment;
7
import in.shop2020.payments.PaymentException;
7
import in.shop2020.payments.PaymentException;
8
import in.shop2020.payments.PaymentStatus;
8
import in.shop2020.payments.PaymentStatus;
9
import in.shop2020.serving.services.CommonPaymentService;
9
import in.shop2020.serving.services.CommonPaymentService;
10
import in.shop2020.serving.services.EbsPaymentService;
-
 
11
import in.shop2020.serving.services.IPaymentService;
-
 
12
import in.shop2020.serving.utils.ebs.Base64;
10
import in.shop2020.serving.utils.ebs.Base64;
13
import in.shop2020.serving.utils.ebs.RC4;
11
import in.shop2020.serving.utils.ebs.RC4;
14
import in.shop2020.thrift.clients.PaymentServiceClient;
12
import in.shop2020.thrift.clients.PaymentClient;
15
import in.shop2020.thrift.clients.TransactionServiceClient;
13
import in.shop2020.thrift.clients.TransactionClient;
16
import in.shop2020.thrift.clients.UserContextServiceClient;
14
import in.shop2020.thrift.clients.UserClient;
17
import in.shop2020.thrift.clients.config.ConfigClient;
15
import in.shop2020.thrift.clients.config.ConfigClient;
18
import in.shop2020.utils.DataLogger;
16
import in.shop2020.utils.DataLogger;
19
 
17
 
20
import java.io.BufferedReader;
18
import java.io.BufferedReader;
21
import java.io.ByteArrayInputStream;
19
import java.io.ByteArrayInputStream;
Line 69... Line 67...
69
		byte[] result = decodeRecvdData(data1);
67
		byte[] result = decodeRecvdData(data1);
70
 
68
 
71
		String recvString = parseRecvdData(result);
69
		String recvString = parseRecvdData(result);
72
		updatePaymentParams(recvString);
70
		updatePaymentParams(recvString);
73
 
71
 
74
		PaymentServiceClient paymentServiceClient = null;
72
		PaymentClient paymentServiceClient = null;
75
		TransactionServiceClient transactionServiceClient = null;
73
		TransactionClient transactionServiceClient = null;
76
		UserContextServiceClient userServiceClient = null;
74
		UserClient userServiceClient = null;
77
		try {
75
		try {
78
			paymentServiceClient = new PaymentServiceClient();
76
			paymentServiceClient = new PaymentClient();
79
			transactionServiceClient = new TransactionServiceClient();
77
			transactionServiceClient = new TransactionClient();
80
			userServiceClient = new UserContextServiceClient();
78
			userServiceClient = new UserClient();
81
		} catch (Exception e) {
79
		} catch (Exception e) {
82
			log.error("Unable to initialize one of the clients", e);
80
			log.error("Unable to initialize one of the clients", e);
83
		}
81
		}
84
 
82
 
85
 
83