Logging for checkout 3ds error handling
This commit is contained in:
parent
6f0f0a4ffa
commit
2b4c3b799d
1 changed files with 3 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue