| Line 1179... |
Line 1179... |
| 1179 |
// "Billing is on hold temporarily", "Billing is on hold temporarily");
|
1179 |
// "Billing is on hold temporarily", "Billing is on hold temporarily");
|
| 1180 |
LOGGER.info("request at uri {}", request.getRequestURI());
|
1180 |
LOGGER.info("request at uri {}", request.getRequestURI());
|
| 1181 |
LOGGER.info("request body {}", createOrderRequest);
|
1181 |
LOGGER.info("request body {}", createOrderRequest);
|
| 1182 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
1182 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
| 1183 |
int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
|
1183 |
int fofoOrderId = orderService.createOrder(createOrderRequest, fofoDetails.getFofoId(), accessoriesDeals);
|
| 1184 |
try {
|
1184 |
// try {
|
| 1185 |
scratchService.processScratchOffer(fofoOrderId, createOrderRequest.getPaymentOptions(), createOrderRequest.getFofoOrderItems());
|
1185 |
// scratchService.processScratchOffer(fofoOrderId, createOrderRequest.getPaymentOptions(), createOrderRequest.getFofoOrderItems());
|
| 1186 |
} catch (Exception e) {
|
1186 |
// } catch (Exception e) {
|
| 1187 |
LOGGER.info("Exception during processScratchOffer - " + e.getMessage());
|
1187 |
// LOGGER.info("Exception during processScratchOffer - " + e.getMessage());
|
| 1188 |
}
|
1188 |
// }
|
| - |
|
1189 |
|
| 1189 |
LOGGER.info("Order has been created successfully...");
|
1190 |
LOGGER.info("Order has been created successfully...");
|
| 1190 |
return "redirect:/get-order/?orderId=" + fofoOrderId;
|
1191 |
return "redirect:/get-order/?orderId=" + fofoOrderId;
|
| 1191 |
}
|
1192 |
}
|
| 1192 |
|
1193 |
|
| 1193 |
@GetMapping("/billedOrders")
|
1194 |
@GetMapping("/billedOrders")
|