Slide 8
Slide 8 text
MACIEJWALKOWIAK
try {
LOGGER.info("Executing payment for user: {}", userId);
PaymentResult result = paymentService.executePayment(userId, payment);
LOGGER.info("Payment result: {}", result);
return result;
} catch (Exception e) {
LOGGER.error("Executing payment failed for user: {}, payment: {}", e);
throw new RuntimeException(e);
}