1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/PaymentDrivers/Stripe/BrowserPay.php

47 lines
1.2 KiB
PHP
Raw Normal View History

2021-10-31 14:45:01 +01:00
<?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\Stripe;
use Illuminate\Http\Request;
use App\PaymentDrivers\Common\MethodInterface;
use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest;
2021-10-31 14:52:15 +01:00
use Illuminate\Http\RedirectResponse;
2021-10-31 14:45:01 +01:00
class BrowserPay implements MethodInterface
{
2021-10-31 14:52:15 +01:00
/**
* Authorization page for browser pay.
*
* @param array $data
* @return RedirectResponse
*/
public function authorizeView(array $data): RedirectResponse
{
return redirect()->route('client.payment_methods.index');
}
2021-10-31 14:45:01 +01:00
2021-10-31 14:52:15 +01:00
/**
* Handle the authorization for browser pay.
*
* @param Request $request
* @return RedirectResponse
*/
public function authorizeResponse(Request $request): RedirectResponse
{
return redirect()->route('client.payment_methods.index');
}
2021-10-31 14:45:01 +01:00
public function paymentView(array $data) { }
public function paymentResponse(PaymentResponseRequest $request) { }
}