From 6502ca0bf4f2ac7dd20447eb623ee16d4ec1955a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sun, 31 Oct 2021 14:52:15 +0100 Subject: [PATCH] Authorization --- app/PaymentDrivers/Stripe/BrowserPay.php | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/Stripe/BrowserPay.php b/app/PaymentDrivers/Stripe/BrowserPay.php index 51941d70048c..582b856dd783 100644 --- a/app/PaymentDrivers/Stripe/BrowserPay.php +++ b/app/PaymentDrivers/Stripe/BrowserPay.php @@ -15,12 +15,31 @@ namespace App\PaymentDrivers\Stripe; use Illuminate\Http\Request; use App\PaymentDrivers\Common\MethodInterface; use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest; +use Illuminate\Http\RedirectResponse; class BrowserPay implements MethodInterface { - public function authorizeView(array $data) { } + /** + * Authorization page for browser pay. + * + * @param array $data + * @return RedirectResponse + */ + public function authorizeView(array $data): RedirectResponse + { + return redirect()->route('client.payment_methods.index'); + } - public function authorizeResponse(Request $request) { } + /** + * Handle the authorization for browser pay. + * + * @param Request $request + * @return RedirectResponse + */ + public function authorizeResponse(Request $request): RedirectResponse + { + return redirect()->route('client.payment_methods.index'); + } public function paymentView(array $data) { }