updates for Forte

This commit is contained in:
David Bomba 2024-09-05 19:04:40 +10:00
parent 59ba737f5d
commit 31da9cf5ab
2 changed files with 15 additions and 1 deletions

View File

@ -146,9 +146,14 @@ class ACH implements LivewireMethodInterface
$this->forte->client,
$this->forte->client->company,
);
$error = Validator::make([], []);
$error->getMessageBag()->add('gateway_error', $response->response->response_desc);
return redirect('client/invoices')->withErrors($error);
return redirect()->route('client.invoice.show', ['invoice' => $payment_hash->fee_invoice->hashed_id])->withErrors($error);
// return response()->redirect('client/invoices')->withErrors($error);
}
SystemLogger::dispatch(

View File

@ -4,6 +4,15 @@
</div>
<div class="p-2">
@if($errors->any())
<div class="alert alert-error">
<ul>
@foreach($errors->all() as $error)
<li class="text-sm">{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
@livewire($this->component, [], key($this->componentUniqueId()))
</div>
</div>