From 157841da9b540b746657124ed2530cba352b2aff Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 2 Jul 2024 08:20:10 +1000 Subject: [PATCH] Updates for new payment flow --- app/Livewire/InvoicePay.php | 4 +++ .../livewire/payment_method-flow2.blade.php | 30 ++++++++++++------- .../stripe/credit_card/livewire_pay.blade.php | 1 - 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/app/Livewire/InvoicePay.php b/app/Livewire/InvoicePay.php index 8234c1bb450b..0ae0d0db36b8 100644 --- a/app/Livewire/InvoicePay.php +++ b/app/Livewire/InvoicePay.php @@ -116,6 +116,10 @@ class InvoicePay extends Component $client = $invite->contact->client; $variables = ($invite && auth()->guard('contact')->user()->client->getSetting('show_accept_invoice_terms')) ? (new HtmlEngine($invite))->generateLabelsAndValues() : false; $settings = $client->getMergedSettings(); + + $this->terms_accepted = !$settings->show_accept_invoice_terms; + $this->signature_accepted = !$settings->require_invoice_signature; + $this->context['variables'] = $variables; $this->context['invoice'] = $invite->invoice; $this->context['settings'] = $settings; diff --git a/resources/views/portal/ninja2020/components/livewire/payment_method-flow2.blade.php b/resources/views/portal/ninja2020/components/livewire/payment_method-flow2.blade.php index 464e9f4fefb8..4d2418971b56 100644 --- a/resources/views/portal/ninja2020/components/livewire/payment_method-flow2.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/payment_method-flow2.blade.php @@ -1,18 +1,26 @@ -
+
+ +
+ + + + +
+ @foreach($methods as $index => $method) - + @endforeach - + @script