diff --git a/app/PaymentDrivers/Square/CreditCard.php b/app/PaymentDrivers/Square/CreditCard.php index 75848bec07d5..ba2ab43b2cac 100644 --- a/app/PaymentDrivers/Square/CreditCard.php +++ b/app/PaymentDrivers/Square/CreditCard.php @@ -136,9 +136,9 @@ class CreditCard } - public function processPaymentResponse($request) + public function paymentResponse($request) { - + // .. } /* This method is stubbed ready to go - you just need to harvest the equivalent 'transaction_reference' */ diff --git a/resources/views/portal/ninja2020/gateways/square/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/square/credit_card/pay.blade.php index e29ed3386375..ec4ade5214bd 100644 --- a/resources/views/portal/ninja2020/gateways/square/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/square/credit_card/pay.blade.php @@ -2,170 +2,170 @@ => ctrans('texts.payment_type_credit_card')]) @section('gateway_head') + + @endsection @section('gateway_content') - -
+ @csrf - + + + + + + +
- + + @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) + {{ ctrans('texts.credit_card') }} + @endcomponent + + @include('portal.ninja2020.gateways.includes.payment_details') + + + @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.pay_with')]) + @if (count($tokens) > 0) + @foreach ($tokens as $token) + + @endforeach + @endisset + + + @endcomponent + + @include('portal.ninja2020.gateways.includes.save_card') + @component('portal.ninja2020.components.general.card-element-single') -
- -
- - +
+
@endcomponent - @component('portal.ninja2020.gateways.includes.pay_now') - {{ ctrans('texts.pay_now') }} - @endcomponent + @include('portal.ninja2020.gateways.includes.pay_now') @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