From 2b4c3b799d8e77a6de537af5267d7b209372bb26 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 20 Dec 2022 12:46:23 +1100 Subject: [PATCH] Logging for checkout 3ds error handling --- app/PaymentDrivers/CheckoutCom/Utilities.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/PaymentDrivers/CheckoutCom/Utilities.php b/app/PaymentDrivers/CheckoutCom/Utilities.php index d9d2ff4b3fbb..7ac9601d5d60 100644 --- a/app/PaymentDrivers/CheckoutCom/Utilities.php +++ b/app/PaymentDrivers/CheckoutCom/Utilities.php @@ -87,6 +87,9 @@ trait Utilities $error_message = ''; + nlog("checkout failure"); + nlog($_payment); + if (is_array($_payment) && array_key_exists('actions', $_payment) && array_key_exists('response_summary', end($_payment['actions']))) { $error_message = end($_payment['actions'])['response_summary']; } elseif (is_array($_payment) && array_key_exists('status', $_payment)) {