mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for system logging successful gateway responses"
This commit is contained in:
parent
51cd6f71fd
commit
f0bf26ad14
@ -140,11 +140,6 @@ class AuthorizeCreditCard
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private function handleResponse($data, $request)
|
private function handleResponse($data, $request)
|
||||||
{
|
{
|
||||||
$response = $data['response'];
|
$response = $data['response'];
|
||||||
@ -205,7 +200,12 @@ class AuthorizeCreditCard
|
|||||||
'data' => $this->formatGatewayResponse($data, $vars),
|
'data' => $this->formatGatewayResponse($data, $vars),
|
||||||
];
|
];
|
||||||
|
|
||||||
SystemLogger::dispatch($logger_message, SystemLog::CATEGORY_GATEWAY_RESPONSE, SystemLog::EVENT_GATEWAY_SUCCESS, SystemLog::TYPE_AUTHORIZE, $this->authorize->client);
|
SystemLogger::dispatch(
|
||||||
|
$logger_message,
|
||||||
|
SystemLog::CATEGORY_GATEWAY_RESPONSE,
|
||||||
|
SystemLog::EVENT_GATEWAY_SUCCESS,
|
||||||
|
SystemLog::TYPE_AUTHORIZE,
|
||||||
|
$this->authorize->client);
|
||||||
|
|
||||||
return redirect()->route('client.payments.show', ['payment' => $this->encodePrimaryKey($payment->id)]);
|
return redirect()->route('client.payments.show', ['payment' => $this->encodePrimaryKey($payment->id)]);
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,8 @@ class GetInvoicePdf extends AbstractService
|
|||||||
$file_path = CreateEntityPdf::dispatchNow($invitation);
|
$file_path = CreateEntityPdf::dispatchNow($invitation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Copy from remote disk to local when using cloud file storage. */
|
||||||
if(config('filesystems.default') == 's3')
|
if(config('filesystems.default') == 's3')
|
||||||
return TempFile::path(Storage::disk($disk)->url($file_path));
|
return TempFile::path(Storage::disk($disk)->url($file_path));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user