Fixes for Forte

This commit is contained in:
David Bomba 2022-10-09 12:32:27 +11:00
parent de9154b1bf
commit dfe66559dc
3 changed files with 7 additions and 7 deletions

View File

@ -82,7 +82,7 @@ class CreditCard
$this->forte->payment_hash->data = array_merge((array) $this->forte->payment_hash->data, $data); $this->forte->payment_hash->data = array_merge((array) $this->forte->payment_hash->data, $data);
$this->forte->payment_hash->save(); $this->forte->payment_hash->save();
$data['gateway'] = $this; $data['gateway'] = $this->forte;
return render('gateways.forte.credit_card.pay', $data); return render('gateways.forte.credit_card.pay', $data);
} }

View File

@ -1,14 +1,14 @@
@extends('portal.ninja2020.layout.payments', ['gateway_title' => 'Bank Transfer', 'card_title' => 'Bank Transfer']) @extends('portal.ninja2020.layout.payments', ['gateway_title' => 'Bank Transfer', 'card_title' => 'Bank Transfer'])
@section('gateway_head') @section('gateway_head')
<meta name="forte-api-login-id" content="{{$gateway->forte->company_gateway->getConfigField("apiLoginId")}}"> <meta name="forte-api-login-id" content="{{$gateway->company_gateway->getConfigField("apiLoginId")}}">
@endsection @endsection
@section('gateway_content') @section('gateway_content')
<form action="{{ route('client.payments.response') }}" method="post" id="server_response"> <form action="{{ route('client.payments.response') }}" method="post" id="server_response">
@csrf @csrf
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}"> <input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
<input type="hidden" name="company_gateway_id" value="{{ $gateway->forte->company_gateway->id }}"> <input type="hidden" name="company_gateway_id" value="{{ $gateway->company_gateway->id }}">
<input type="hidden" name="payment_method_id" value="{{$payment_method_id}}"> <input type="hidden" name="payment_method_id" value="{{$payment_method_id}}">
<input type="hidden" name="gateway_response" id="gateway_response"> <input type="hidden" name="gateway_response" id="gateway_response">
<input type="hidden" name="dataValue" id="dataValue"/> <input type="hidden" name="dataValue" id="dataValue"/>
@ -43,7 +43,7 @@
@endsection @endsection
@section('gateway_footer') @section('gateway_footer')
@if($gateway->forte->company_gateway->getConfigField('testMode')) @if($gateway->company_gateway->getConfigField('testMode'))
<script type="text/javascript" src="https://sandbox.forte.net/api/js/v1"></script> <script type="text/javascript" src="https://sandbox.forte.net/api/js/v1"></script>
@else @else
<script type="text/javascript" src="https://api.forte.net/js/v1"></script> <script type="text/javascript" src="https://api.forte.net/js/v1"></script>

View File

@ -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')]) @extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.payment_type_credit_card'), 'card_title' => ctrans('texts.payment_type_credit_card')])
@section('gateway_head') @section('gateway_head')
<meta name="forte-api-login-id" content="{{$gateway->forte->company_gateway->getConfigField("apiLoginId")}}"> <meta name="forte-api-login-id" content="{{$gateway->company_gateway->getConfigField("apiLoginId")}}">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="{{ asset('js/clients/payments/forte-card-js.min.js') }}"></script> <script src="{{ asset('js/clients/payments/forte-card-js.min.js') }}"></script>
@ -14,7 +14,7 @@
<input type="hidden" name="card_brand" id="card_brand"> <input type="hidden" name="card_brand" id="card_brand">
<input type="hidden" name="payment_token" id="payment_token"> <input type="hidden" name="payment_token" id="payment_token">
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}"> <input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
<input type="hidden" name="company_gateway_id" value="{{ $gateway->forte->company_gateway->id }}"> <input type="hidden" name="company_gateway_id" value="{{ $gateway->company_gateway->id }}">
<input type="hidden" name="payment_method_id" value="{{$payment_method_id}}"> <input type="hidden" name="payment_method_id" value="{{$payment_method_id}}">
<input type="hidden" name="gateway_response" id="gateway_response"> <input type="hidden" name="gateway_response" id="gateway_response">
<input type="hidden" name="dataValue" id="dataValue"/> <input type="hidden" name="dataValue" id="dataValue"/>
@ -41,7 +41,7 @@
@endsection @endsection
@section('gateway_footer') @section('gateway_footer')
@if($gateway->forte->company_gateway->getConfigField('testMode')) @if($gateway->company_gateway->getConfigField('testMode'))
<script type="text/javascript" src="https://sandbox.forte.net/api/js/v1"></script> <script type="text/javascript" src="https://sandbox.forte.net/api/js/v1"></script>
@else @else
<script type="text/javascript" src="https://api.forte.net/js/v1"></script> <script type="text/javascript" src="https://api.forte.net/js/v1"></script>