mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-09 17:14:38 -04:00
Additional logging
This commit is contained in:
parent
d127643405
commit
ed853efd19
@ -114,6 +114,19 @@ class AuthorizeCreditCard
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
$vars = [
|
||||||
|
'invoices' => $payment_hash->invoices(),
|
||||||
|
'amount' => $amount,
|
||||||
|
];
|
||||||
|
|
||||||
|
$logger_message = [
|
||||||
|
'server_response' => $response->getTransactionResponse()->getTransId(),
|
||||||
|
'data' => $this->formatGatewayResponse($data, $vars),
|
||||||
|
];
|
||||||
|
|
||||||
|
SystemLogger::dispatch($logger_message, SystemLog::CATEGORY_GATEWAY_RESPONSE, SystemLog::EVENT_GATEWAY_FAILURE, SystemLog::TYPE_AUTHORIZE, $this->authorize->client);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user