diff --git a/app/PaymentDrivers/Forte/ACH.php b/app/PaymentDrivers/Forte/ACH.php index 750ffdd0f3b9..1fa4c4a2ab07 100644 --- a/app/PaymentDrivers/Forte/ACH.php +++ b/app/PaymentDrivers/Forte/ACH.php @@ -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( diff --git a/resources/views/portal/ninja2020/flow2/invoice-pay.blade.php b/resources/views/portal/ninja2020/flow2/invoice-pay.blade.php index 728a295f2d5a..a2febb865db9 100644 --- a/resources/views/portal/ninja2020/flow2/invoice-pay.blade.php +++ b/resources/views/portal/ninja2020/flow2/invoice-pay.blade.php @@ -4,6 +4,15 @@
+ @if($errors->any()) +
+ +
+ @endif @livewire($this->component, [], key($this->componentUniqueId()))