From e0b0879ed5ee18fd342cb11080e3e87d3ab83b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 17 Aug 2021 13:16:58 +0200 Subject: [PATCH] Standalone credit card adding --- .../square/credit_card/authorize.blade.php | 192 +++++------------- 1 file changed, 51 insertions(+), 141 deletions(-) diff --git a/resources/views/portal/ninja2020/gateways/square/credit_card/authorize.blade.php b/resources/views/portal/ninja2020/gateways/square/credit_card/authorize.blade.php index 0c5eaf2a284a..71276af89889 100644 --- a/resources/views/portal/ninja2020/gateways/square/credit_card/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/square/credit_card/authorize.blade.php @@ -2,6 +2,8 @@ => ctrans('texts.payment_type_credit_card')]) @section('gateway_head') + + @endsection @section('gateway_content') @@ -9,161 +11,69 @@ method="post" id="server_response"> @csrf - - + + + @component('portal.ninja2020.components.general.card-element-single') -
- -
- - +
+
@endcomponent - @component('portal.ninja2020.gateways.includes.pay_now') + @component('portal.ninja2020.gateways.includes.pay_now', ['id' => 'authorize-card']) {{ ctrans('texts.add_payment_method') }} @endcomponent @endsection @section('gateway_footer') + @if ($gateway->company_gateway->getConfigField('testMode')) + + @else + + @endif - @if($gateway->company_gateway->getConfigField('testMode')) - - @else - - @endif + - - @endsection \ No newline at end of file + new SquareCreditCard().handle(); + +@endsection