From 8ad137115429327f47ab8e74eb0eb316c2418dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= <p.mueller@pcsg.de> Date: Mon, 31 Mar 2025 15:08:40 +0200 Subject: [PATCH 1/2] fix: more detailled logging on paypel request error quiqqer/payment-paypal#34 --- src/QUI/ERP/Payments/PayPal/Payment.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/QUI/ERP/Payments/PayPal/Payment.php b/src/QUI/ERP/Payments/PayPal/Payment.php index d0ae648..6d3f85f 100644 --- a/src/QUI/ERP/Payments/PayPal/Payment.php +++ b/src/QUI/ERP/Payments/PayPal/Payment.php @@ -43,6 +43,7 @@ use QUI\ExceptionStack; use function boolval; +use function get_class; use function is_array; use function json_decode; use function json_encode; @@ -1275,7 +1276,10 @@ public function payPalApiRequest( QUI\System\Log::write( $message, QUI\System\Log::LEVEL_WARNING, - [], + [ + 'paypalRequestClass' => get_class($Request), + 'requestBody' => $Request->body + ], 'paypal_api' ); -- GitLab From 4fffdba2d792911e8aa985587a6425f2d915cff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= <p.mueller@pcsg.de> Date: Mon, 31 Mar 2025 15:11:08 +0200 Subject: [PATCH 2/2] fix: more detailled logging on paypel request error quiqqer/payment-paypal#34 --- src/QUI/ERP/Payments/PayPal/Payment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/QUI/ERP/Payments/PayPal/Payment.php b/src/QUI/ERP/Payments/PayPal/Payment.php index 6d3f85f..fa55cd6 100644 --- a/src/QUI/ERP/Payments/PayPal/Payment.php +++ b/src/QUI/ERP/Payments/PayPal/Payment.php @@ -1278,7 +1278,8 @@ public function payPalApiRequest( QUI\System\Log::LEVEL_WARNING, [ 'paypalRequestClass' => get_class($Request), - 'requestBody' => $Request->body + 'requestBody' => $Request->body, + 'transactionObject' => get_class($TransactionObj) ], 'paypal_api' ); -- GitLab