mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Authorization
This commit is contained in:
parent
046e467332
commit
1d0c09ab6f
@ -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 IDEAL implements MethodInterface
|
class IDEAL implements MethodInterface
|
||||||
{
|
{
|
||||||
@ -28,9 +30,27 @@ class IDEAL implements MethodInterface
|
|||||||
$this->mollie->init();
|
$this->mollie->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function authorizeView(array $data) { }
|
/**
|
||||||
|
* Show the authorization page for iDEAL.
|
||||||
|
*
|
||||||
|
* @param array $data
|
||||||
|
* @return View
|
||||||
|
*/
|
||||||
|
public function authorizeView(array $data): View
|
||||||
|
{
|
||||||
|
return render('gateways.mollie.ideal.authorize', $data);
|
||||||
|
}
|
||||||
|
|
||||||
public function authorizeResponse(Request $request) { }
|
/**
|
||||||
|
* Handle the authorization for iDEAL.
|
||||||
|
*
|
||||||
|
* @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) { }
|
||||||
|
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
@extends('portal.ninja2020.layout.payments', ['gateway_title' => 'iDEAL', 'card_title' =>
|
||||||
|
'iDEAL'])
|
||||||
|
|
||||||
|
@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