From dfe66559dc595a4eee1b58fea79507277a9b962b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 9 Oct 2022 12:32:27 +1100 Subject: [PATCH] Fixes for Forte --- app/PaymentDrivers/Forte/CreditCard.php | 2 +- .../views/portal/ninja2020/gateways/forte/ach/pay.blade.php | 6 +++--- .../ninja2020/gateways/forte/credit_card/pay.blade.php | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/PaymentDrivers/Forte/CreditCard.php b/app/PaymentDrivers/Forte/CreditCard.php index 88d8007780d2..6558d2fe5915 100644 --- a/app/PaymentDrivers/Forte/CreditCard.php +++ b/app/PaymentDrivers/Forte/CreditCard.php @@ -82,7 +82,7 @@ class CreditCard $this->forte->payment_hash->data = array_merge((array) $this->forte->payment_hash->data, $data); $this->forte->payment_hash->save(); - $data['gateway'] = $this; + $data['gateway'] = $this->forte; return render('gateways.forte.credit_card.pay', $data); } diff --git a/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php b/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php index 5dbb93fbd246..88b209798220 100644 --- a/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php @@ -1,14 +1,14 @@ @extends('portal.ninja2020.layout.payments', ['gateway_title' => 'Bank Transfer', 'card_title' => 'Bank Transfer']) @section('gateway_head') - + @endsection @section('gateway_content')
@csrf - + @@ -43,7 +43,7 @@ @endsection @section('gateway_footer') - @if($gateway->forte->company_gateway->getConfigField('testMode')) + @if($gateway->company_gateway->getConfigField('testMode')) @else 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 1cceb137f39c..1e20311e7c45 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 @@ -1,7 +1,7 @@ @extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.payment_type_credit_card'), 'card_title' => ctrans('texts.payment_type_credit_card')]) @section('gateway_head') - + @@ -14,7 +14,7 @@ - + @@ -41,7 +41,7 @@ @endsection @section('gateway_footer') - @if($gateway->forte->company_gateway->getConfigField('testMode')) + @if($gateway->company_gateway->getConfigField('testMode')) @else