mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\PaymentDrivers\Mollie;
|
|
|
|
use App\Http\Requests\Request;
|
|
use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest;
|
|
use App\PaymentDrivers\Common\MethodInterface;
|
|
use App\PaymentDrivers\MolliePaymentDriver;
|
|
use Illuminate\Http\RedirectResponse;
|
|
use Illuminate\View\View;
|
|
|
|
class IDEAL implements MethodInterface
|
|
{
|
|
protected MolliePaymentDriver $mollie;
|
|
|
|
public function __construct(MolliePaymentDriver $mollie)
|
|
{
|
|
$this->mollie = $mollie;
|
|
|
|
$this->mollie->init();
|
|
}
|
|
|
|
/**
|
|
* Show the authorization page for iDEAL.
|
|
*
|
|
* @param array $data
|
|
* @return View
|
|
*/
|
|
public function authorizeView(array $data): View
|
|
{
|
|
return render('gateways.mollie.ideal.authorize', $data);
|
|
}
|
|
|
|
/**
|
|
* 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 paymentResponse(PaymentResponseRequest $request) { }
|
|
} |