From 490c026a081c3ac0b87438424d3f5a95543fad06 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 10 Jan 2023 13:34:36 +1100 Subject: [PATCH] Fixes for forte payment driver authorization --- .../portal/ninja2020/gateways/forte/ach/authorize.blade.php | 4 ++-- .../ninja2020/gateways/forte/credit_card/authorize.blade.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/portal/ninja2020/gateways/forte/ach/authorize.blade.php b/resources/views/portal/ninja2020/gateways/forte/ach/authorize.blade.php index 318d2d94391e..3004db09e005 100644 --- a/resources/views/portal/ninja2020/gateways/forte/ach/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/ach/authorize.blade.php @@ -1,7 +1,7 @@ @extends('portal.ninja2020.layout.payments', ['gateway_title' => 'Bank Details', 'card_title' => 'Bank Details']) @section('gateway_head') - @if($gateway->getConfigField('testMode')) + @if($gateway->company_gateway->getConfigField('testMode')) @else @@ -116,7 +116,7 @@ var routing_number=document.getElementById('routing-number').value; var data = { - api_login_id: '{{$gateway->getConfigField("apiLoginId")}}', + api_login_id: '{{$gateway->company_gateway->getConfigField("apiLoginId")}}', account_number: account_number, routing_number: routing_number, account_type: "checking", 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 70d356f8e2f2..577999262a05 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 @@ -9,7 +9,7 @@ - @if($gateway->getConfigField('testMode')) + @if($gateway->company_gateway->getConfigField('testMode')) @else @@ -106,7 +106,7 @@ document.getElementById('expire_month').value=month; var data = { - api_login_id: '{{$gateway->getConfigField("apiLoginId")}}', + api_login_id: '{{$gateway->company_gateway->getConfigField("apiLoginId")}}', card_number: cc, expire_year: year, expire_month: month,