| Line 9... |
Line 9... |
| 9 |
import in.shop2020.serving.services.CommonPaymentService;
|
9 |
import in.shop2020.serving.services.CommonPaymentService;
|
| 10 |
import in.shop2020.serving.services.EbsPaymentService;
|
10 |
import in.shop2020.serving.services.EbsPaymentService;
|
| 11 |
import in.shop2020.serving.services.HdfcPaymentService;
|
11 |
import in.shop2020.serving.services.HdfcPaymentService;
|
| 12 |
import in.shop2020.serving.services.IPaymentService;
|
12 |
import in.shop2020.serving.services.IPaymentService;
|
| 13 |
import in.shop2020.serving.utils.DesEncrypter;
|
13 |
import in.shop2020.serving.utils.DesEncrypter;
|
| - |
|
14 |
import in.shop2020.serving.utils.Utils;
|
| 14 |
import in.shop2020.thrift.clients.LogisticsClient;
|
15 |
import in.shop2020.thrift.clients.LogisticsClient;
|
| 15 |
import in.shop2020.thrift.clients.TransactionClient;
|
16 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 16 |
import in.shop2020.thrift.clients.UserClient;
|
17 |
import in.shop2020.thrift.clients.UserClient;
|
| 17 |
import in.shop2020.utils.DataLogger;
|
18 |
import in.shop2020.utils.DataLogger;
|
| 18 |
|
19 |
|
| Line 291... |
Line 292... |
| 291 |
|
292 |
|
| 292 |
TransactionClient transactionServiceClient = null;
|
293 |
TransactionClient transactionServiceClient = null;
|
| 293 |
try {
|
294 |
try {
|
| 294 |
transactionServiceClient = new TransactionClient();
|
295 |
transactionServiceClient = new TransactionClient();
|
| 295 |
List<Order> orders = transactionServiceClient.getClient().getOrdersForTransaction(txnId, userinfo.getUserId());
|
296 |
List<Order> orders = transactionServiceClient.getClient().getOrdersForTransaction(txnId, userinfo.getUserId());
|
| - |
|
297 |
String itemIdString = Utils.getItemIdStringFromOrders(orders);
|
| 296 |
for (Order order : orders) {
|
298 |
for (Order order : orders) {
|
| 297 |
DataLogger.logData(EventType.ORDER_CREATION, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
|
299 |
DataLogger.logData(EventType.ORDER_CREATION, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
|
| 298 |
Long.toString(order.getId()), Long.toString(currentCartId));
|
300 |
Long.toString(order.getId()), Long.toString(currentCartId), itemIdString);
|
| 299 |
}
|
301 |
}
|
| 300 |
} catch (Exception e1) {
|
302 |
} catch (Exception e1) {
|
| 301 |
log.warn("Unable to log orders through the datalogger", e1);
|
303 |
log.warn("Unable to log orders through the datalogger", e1);
|
| 302 |
}
|
304 |
}
|
| 303 |
|
305 |
|