mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:47:32 -05:00 
			
		
		
		
	Merge pull request #4767 from beganovich/v5-2601-fix-instance-of-gateway-authorize
(v5) Fix not showing required gateway fields for Authorize.net
This commit is contained in:
		
						commit
						150a6622cd
					
				@ -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');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -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>
 | 
				
			||||||
 | 
				
			|||||||
@ -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>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user