mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-06 13:34:34 -04:00
Authorization
This commit is contained in:
parent
00a5c9882c
commit
20fa79d51a
@ -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 Bancontact implements MethodInterface
|
class Bancontact implements MethodInterface
|
||||||
{
|
{
|
||||||
@ -28,9 +30,27 @@ class Bancontact implements MethodInterface
|
|||||||
$this->mollie->init();
|
$this->mollie->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function authorizeView(array $data) { }
|
/**
|
||||||
|
* Show the authorization page for Bancontact.
|
||||||
|
*
|
||||||
|
* @param array $data
|
||||||
|
* @return View
|
||||||
|
*/
|
||||||
|
public function authorizeView(array $data): View
|
||||||
|
{
|
||||||
|
return render('gateways.mollie.bancontact.authorize', $data);
|
||||||
|
}
|
||||||
|
|
||||||
public function authorizeResponse(Request $request) { }
|
/**
|
||||||
|
* Handle the authorization for Bancontact.
|
||||||
|
*
|
||||||
|
* @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) { }
|
||||||
|
|
||||||
|
@ -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' => 'Bancontact', 'card_title' =>
|
||||||
|
'Bancontact'])
|
||||||
|
|
||||||
|
@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