Fixes for system logging successful gateway responses"

This commit is contained in:
David Bomba 2021-01-12 20:35:47 +11:00
parent 51cd6f71fd
commit f0bf26ad14
2 changed files with 8 additions and 6 deletions

View File

@ -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)]);
} }

View File

@ -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));