From c4ee801ed12c2e51ac6cfcdfdcc1568ca013bc4a Mon Sep 17 00:00:00 2001 From: elzes Date: Sun, 1 Dec 2024 17:50:11 +0100 Subject: [PATCH] Log mollie error response --- .../alfio/manager/payment/MollieWebhookPaymentManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/alfio/manager/payment/MollieWebhookPaymentManager.java b/src/main/java/alfio/manager/payment/MollieWebhookPaymentManager.java index 3a7d8bad0..a06197b26 100644 --- a/src/main/java/alfio/manager/payment/MollieWebhookPaymentManager.java +++ b/src/main/java/alfio/manager/payment/MollieWebhookPaymentManager.java @@ -360,6 +360,9 @@ private PaymentResult initPayment(TicketReservation reservation, } } else { log.warn("was not able to create a payment for reservation id " + reservationId); + try (InputStream inputStream = response.body()) { + log.warn(new String(inputStream.readAllBytes())); + } return PaymentResult.failed(ErrorsCode.STEP_2_PAYMENT_REQUEST_CREATION); } }