| Line 7... |
Line 7... |
| 7 |
import in.shop2020.payments.PaymentService.Client;
|
7 |
import in.shop2020.payments.PaymentService.Client;
|
| 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.HdfcPaymentService;
|
10 |
import in.shop2020.serving.services.HdfcPaymentService;
|
| 11 |
import in.shop2020.serving.services.IPaymentService;
|
11 |
import in.shop2020.serving.services.IPaymentService;
|
| 12 |
import in.shop2020.thrift.clients.PaymentServiceClient;
|
12 |
import in.shop2020.thrift.clients.PaymentClient;
|
| 13 |
import in.shop2020.thrift.clients.TransactionServiceClient;
|
13 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 14 |
import in.shop2020.thrift.clients.UserContextServiceClient;
|
14 |
import in.shop2020.thrift.clients.UserClient;
|
| 15 |
import in.shop2020.thrift.clients.config.ConfigClient;
|
15 |
import in.shop2020.thrift.clients.config.ConfigClient;
|
| 16 |
|
16 |
|
| 17 |
import java.io.IOException;
|
17 |
import java.io.IOException;
|
| 18 |
import java.text.SimpleDateFormat;
|
18 |
import java.text.SimpleDateFormat;
|
| 19 |
import java.util.ArrayList;
|
19 |
import java.util.ArrayList;
|
| Line 106... |
Line 106... |
| 106 |
* @throws SecurityException
|
106 |
* @throws SecurityException
|
| 107 |
*/
|
107 |
*/
|
| 108 |
public String create() throws IOException, SecurityException{
|
108 |
public String create() throws IOException, SecurityException{
|
| 109 |
log.info("Inside hdfc pay response Create");
|
109 |
log.info("Inside hdfc pay response Create");
|
| 110 |
|
110 |
|
| 111 |
PaymentServiceClient paymentServiceClient = null;
|
111 |
PaymentClient paymentServiceClient = null;
|
| 112 |
TransactionServiceClient transactionServiceClient = null;
|
112 |
TransactionClient transactionServiceClient = null;
|
| 113 |
UserContextServiceClient userServiceClient = null;
|
113 |
UserClient userServiceClient = null;
|
| 114 |
try{
|
114 |
try{
|
| 115 |
paymentServiceClient = new PaymentServiceClient();
|
115 |
paymentServiceClient = new PaymentClient();
|
| 116 |
transactionServiceClient = new TransactionServiceClient();
|
116 |
transactionServiceClient = new TransactionClient();
|
| 117 |
userServiceClient = new UserContextServiceClient();
|
117 |
userServiceClient = new UserClient();
|
| 118 |
}catch(Exception e){
|
118 |
}catch(Exception e){
|
| 119 |
//Nothing to worry. lets move forward
|
119 |
//Nothing to worry. lets move forward
|
| 120 |
log.error("Unable to initialize one of the clients", e);
|
120 |
log.error("Unable to initialize one of the clients", e);
|
| 121 |
}
|
121 |
}
|
| 122 |
|
122 |
|