fix instance

This commit is contained in:
Benjamin Beganović 2021-01-26 13:29:27 +01:00
parent 88bac69e13
commit d537d012a1
3 changed files with 6 additions and 6 deletions

View File

@ -80,7 +80,7 @@ class AuthorizePaymentMethod
public function authorizeCreditCard() public function authorizeCreditCard()
{ {
$data['gateway'] = $this->authorize->company_gateway; $data['gateway'] = $this->authorize;
$data['public_client_id'] = $this->authorize->init()->getPublicClientKey(); $data['public_client_id'] = $this->authorize->init()->getPublicClientKey();
$data['api_login_id'] = $this->authorize->company_gateway->getConfigField('apiLoginId'); $data['api_login_id'] = $this->authorize->company_gateway->getConfigField('apiLoginId');
@ -261,9 +261,9 @@ class AuthorizePaymentMethod
// Set the transaction's refId // Set the transaction's refId
$refId = 'ref' . time(); $refId = 'ref' . time();
// Use an existing payment profile ID for this Merchant name and Transaction key // Use an existing payment profile ID for this Merchant name and Transaction key
$request = new DeleteCustomerPaymentProfileRequest(); $request = new DeleteCustomerPaymentProfileRequest();
$request->setMerchantAuthentication($this->authorize->merchant_authentication); $request->setMerchantAuthentication($this->authorize->merchant_authentication);
$request->setCustomerProfileId($gateway_customer_reference); $request->setCustomerProfileId($gateway_customer_reference);

View File

@ -18,7 +18,7 @@
method="post" id="server_response"> method="post" id="server_response">
@csrf @csrf
<input type="hidden" name="company_gateway_id" value="{{ $gateway->id }}"> <input type="hidden" name="company_gateway_id" value="{{ $gateway->company_gateway->id }}">
<input type="hidden" name="payment_method_id" value="1"> <input type="hidden" name="payment_method_id" value="1">
<input type="hidden" name="gateway_response" id="gateway_response"> <input type="hidden" name="gateway_response" id="gateway_response">
<input type="hidden" name="is_default" id="is_default"> <input type="hidden" name="is_default" id="is_default">
@ -44,7 +44,7 @@
@endsection @endsection
@section('gateway_footer') @section('gateway_footer')
@if($gateway->getConfigField('testMode')) @if($gateway->company_gateway->getConfigField('testMode'))
<script src="https://jstest.authorize.net/v1/Accept.js" charset="utf-8"></script> <script src="https://jstest.authorize.net/v1/Accept.js" charset="utf-8"></script>
@else @else
<script src="https://js.authorize.net/v1/Accept.js" charset="utf-8"></script> <script src="https://js.authorize.net/v1/Accept.js" charset="utf-8"></script>

View File

@ -126,7 +126,7 @@
@yield('footer') @yield('footer')
@stack('footer') @stack('footer')
@if((bool) \App\Utils\Ninja::isSelfHost()) @if((bool) \App\Utils\Ninja::isSelfHost() && !empty($client->getSetting('portal_custom_footer')))
<div class="py-1 text-sm text-center text-white bg-primary"> <div class="py-1 text-sm text-center text-white bg-primary">
{!! $client->getSetting('portal_custom_footer') !!} {!! $client->getSetting('portal_custom_footer') !!}
</div> </div>