Logging for checkout 3ds error handling

This commit is contained in:
David Bomba 2022-12-20 12:46:23 +11:00
parent 6f0f0a4ffa
commit 2b4c3b799d

View File

@ -87,6 +87,9 @@ trait Utilities
$error_message = ''; $error_message = '';
nlog("checkout failure");
nlog($_payment);
if (is_array($_payment) && array_key_exists('actions', $_payment) && array_key_exists('response_summary', end($_payment['actions']))) { if (is_array($_payment) && array_key_exists('actions', $_payment) && array_key_exists('response_summary', end($_payment['actions']))) {
$error_message = end($_payment['actions'])['response_summary']; $error_message = end($_payment['actions'])['response_summary'];
} elseif (is_array($_payment) && array_key_exists('status', $_payment)) { } elseif (is_array($_payment) && array_key_exists('status', $_payment)) {