Subversion Repositories SmartDukaan

Rev

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

Rev 35084 Rev 35095
Line 1418... Line 1418...
1418
        try {
1418
        try {
1419
            Set<Integer> fofoOrderItemIds = createOrderRequest.getFofoOrderItems()
1419
            Set<Integer> fofoOrderItemIds = createOrderRequest.getFofoOrderItems()
1420
                    .stream().map(CustomFofoOrderItem::getItemId).collect(Collectors.toSet());
1420
                    .stream().map(CustomFofoOrderItem::getItemId).collect(Collectors.toSet());
1421
            scratchService.processScratchOffer(fofoOrderId, createOrderRequest.getPaymentOptions(), fofoOrderItemIds);
1421
            scratchService.processScratchOffer(fofoOrderId, createOrderRequest.getPaymentOptions(), fofoOrderItemIds);
1422
        } catch (Exception e) {
1422
        } catch (Exception e) {
1423
            LOGGER.error("Exception during processScratchOffer", e);
1423
            LOGGER.error("Exception during processScratchOffer for order {}: {}", fofoOrderId, e.getMessage(), e);
1424
        }
1424
        }
1425
 
1425
 
1426
        LOGGER.info("Order has been created successfully...");
1426
        LOGGER.info("Order has been created successfully...");
1427
        return "redirect:/get-order/?orderId=" + fofoOrderId;
1427
        return "redirect:/get-order/?orderId=" + fofoOrderId;
1428
    }
1428
    }