From eb914df7ac7c7fe8be41d03debc1f5cfd6b02be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 30 Aug 2024 01:17:31 +0200 Subject: [PATCH] Forte: Refactor authorization (#90) * include sc in pay * refactor authorize * include sc in pay livewire --- .../forte/credit_card/authorize.blade.php | 46 +++++++++++-------- .../gateways/forte/credit_card/pay.blade.php | 2 + .../forte/credit_card/pay_livewire.blade.php | 3 ++ 3 files changed, 32 insertions(+), 19 deletions(-) diff --git a/resources/views/portal/ninja2020/gateways/forte/credit_card/authorize.blade.php b/resources/views/portal/ninja2020/gateways/forte/credit_card/authorize.blade.php index 577999262a05..57bc29503205 100644 --- a/resources/views/portal/ninja2020/gateways/forte/credit_card/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/credit_card/authorize.blade.php @@ -6,9 +6,8 @@ - + - @if($gateway->company_gateway->getConfigField('testMode')) @else @@ -70,7 +69,19 @@ @endsection @section('gateway_footer') - diff --git a/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php index e43710d889ed..a1624bf78882 100644 --- a/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php @@ -77,6 +77,8 @@ @else @endif + + @vite('resources/js/clients/payments/forte-credit-card-payment.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/forte/credit_card/pay_livewire.blade.php b/resources/views/portal/ninja2020/gateways/forte/credit_card/pay_livewire.blade.php index cff7d20ca4a2..c5854660d8df 100644 --- a/resources/views/portal/ninja2020/gateways/forte/credit_card/pay_livewire.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/credit_card/pay_livewire.blade.php @@ -33,11 +33,14 @@ @assets + @if($gateway->company_gateway->getConfigField('testMode')) @else @endif + + @vite('resources/js/clients/payments/forte-credit-card-payment.js') @endassets