From ca924bf5645912544faaeaaab55c7653e3444754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=BCller?= Date: Thu, 19 Dec 2024 20:48:58 +0100 Subject: [PATCH] PAYOSWXP-158: Improve logging of address violations --- .../GenericExpressCheckout/CustomerRegistrationUtil.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/GenericExpressCheckout/CustomerRegistrationUtil.php b/src/Components/GenericExpressCheckout/CustomerRegistrationUtil.php index 2303f193..7243744e 100644 --- a/src/Components/GenericExpressCheckout/CustomerRegistrationUtil.php +++ b/src/Components/GenericExpressCheckout/CustomerRegistrationUtil.php @@ -73,8 +73,8 @@ public function getCustomerDataBagFromGetCheckoutSessionResponse(array $response $this->logger->error('PAYONE Express Checkout: The delivery and billing address is incomplete', [ 'billingAddress' => $billingAddress, 'shippingAddress' => $shippingAddress, - 'billingAddressViolations' => $billingAddressViolations, - 'shippingAddressViolations' => $shippingAddressViolations, + 'billingAddressViolations' => $billingAddressViolations->__toString(), + 'shippingAddressViolations' => $shippingAddressViolations->__toString(), ]); throw new RuntimeException($this->translator->trans('PayonePayment.errorMessages.genericError'));