From d8a4994e202568c38b62ae83b71110d0ebd99b14 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 25 Apr 2023 08:06:27 +1000 Subject: [PATCH] Add in verification view for gocardless --- app/PaymentDrivers/GoCardless/DirectDebit.php | 2 +- app/PaymentDrivers/GoCardlessPaymentDriver.php | 5 +++++ .../ninja2020/gateways/gocardless/verification.blade.php | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 resources/views/portal/ninja2020/gateways/gocardless/verification.blade.php diff --git a/app/PaymentDrivers/GoCardless/DirectDebit.php b/app/PaymentDrivers/GoCardless/DirectDebit.php index 81bb8c105b78..c7e6d04b0876 100644 --- a/app/PaymentDrivers/GoCardless/DirectDebit.php +++ b/app/PaymentDrivers/GoCardless/DirectDebit.php @@ -143,7 +143,7 @@ class DirectDebit implements MethodInterface /** * Handle unsuccessful authorization. * - * @param Exception $exception + * @param \Exception $exception * @throws PaymentFailed * @return void */ diff --git a/app/PaymentDrivers/GoCardlessPaymentDriver.php b/app/PaymentDrivers/GoCardlessPaymentDriver.php index 433ab7230f33..25977caaf33b 100644 --- a/app/PaymentDrivers/GoCardlessPaymentDriver.php +++ b/app/PaymentDrivers/GoCardlessPaymentDriver.php @@ -542,4 +542,9 @@ class GoCardlessPaymentDriver extends BaseDriver return $client; } + + public function verificationView() + { + return render('gateways.gocardless.verification'); + } } diff --git a/resources/views/portal/ninja2020/gateways/gocardless/verification.blade.php b/resources/views/portal/ninja2020/gateways/gocardless/verification.blade.php new file mode 100644 index 000000000000..284ac4c2b51d --- /dev/null +++ b/resources/views/portal/ninja2020/gateways/gocardless/verification.blade.php @@ -0,0 +1,7 @@ +@extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.payment_type_gocardless'), 'card_title' => ctrans('texts.complete_verification')]) + +@section('gateway_content') + @component('portal.ninja2020.components.general.card-element-single') + This payment method is still in a pending state and has not yet been verified. Please contact your vendor for more information. + @endcomponent +@endsection