mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:57:33 -05:00 
			
		
		
		
	Authorization
This commit is contained in:
		
							parent
							
								
									67c4e55622
								
							
						
					
					
						commit
						16f898379c
					
				@ -16,6 +16,8 @@ use App\Http\Requests\Request;
 | 
				
			|||||||
use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest;
 | 
					use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest;
 | 
				
			||||||
use App\PaymentDrivers\Common\MethodInterface;
 | 
					use App\PaymentDrivers\Common\MethodInterface;
 | 
				
			||||||
use App\PaymentDrivers\MolliePaymentDriver;
 | 
					use App\PaymentDrivers\MolliePaymentDriver;
 | 
				
			||||||
 | 
					use Illuminate\Http\RedirectResponse;
 | 
				
			||||||
 | 
					use Illuminate\View\View;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class KBC implements MethodInterface
 | 
					class KBC implements MethodInterface
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -28,11 +30,33 @@ class KBC implements MethodInterface
 | 
				
			|||||||
        $this->mollie->init();
 | 
					        $this->mollie->init();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function authorizeView(array $data) { }
 | 
					    /**
 | 
				
			||||||
 | 
					     * Show the authorization page for bank transfer.
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @param array $data
 | 
				
			||||||
 | 
					     * @return View
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public function authorizeView(array $data): View
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return render('gateways.mollie.kbc.authorize', $data);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function authorizeResponse(Request $request) { }
 | 
					    /**
 | 
				
			||||||
 | 
					     * Handle the authorization for bank transfer.
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @param Request $request
 | 
				
			||||||
 | 
					     * @return RedirectResponse
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public function authorizeResponse(Request $request): RedirectResponse
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return redirect()->route('client.payment_methods.index');
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function paymentView(array $data) { }
 | 
					    public function paymentView(array $data)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function paymentResponse(PaymentResponseRequest $request) { }
 | 
					    public function paymentResponse(PaymentResponseRequest $request)
 | 
				
			||||||
}
 | 
					    {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -4313,6 +4313,7 @@ $LANG = array(
 | 
				
			|||||||
    'unable_to_verify_payment_method' => 'Unable to verify payment method.',
 | 
					    'unable_to_verify_payment_method' => 'Unable to verify payment method.',
 | 
				
			||||||
    'generic_gateway_error' => 'Gateway configuration error. Please check your credentials.',
 | 
					    'generic_gateway_error' => 'Gateway configuration error. Please check your credentials.',
 | 
				
			||||||
    'my_documents' => 'My documents',
 | 
					    'my_documents' => 'My documents',
 | 
				
			||||||
 | 
					    'payment_method_cannot_be_preauthorized' => 'This payment method cannot be preauthorized.',
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
return $LANG;
 | 
					return $LANG;
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					@extends('portal.ninja2020.layout.payments', ['gateway_title' => 'KBC/CBC', 'card_title' =>
 | 
				
			||||||
 | 
					'KBC/CBC'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@section('gateway_content')
 | 
				
			||||||
 | 
					    @component('portal.ninja2020.components.general.card-element-single')
 | 
				
			||||||
 | 
					        {{ __('texts.payment_method_cannot_be_preauthorized') }}
 | 
				
			||||||
 | 
					    @endcomponent
 | 
				
			||||||
 | 
					@endsection
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user