From 2e0ccb6f7f565f797030bf83758de94ea587020e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 7 Oct 2021 16:52:41 +0200 Subject: [PATCH] Initialize Razorpay driver --- app/PaymentDrivers/Razorpay/Hosted.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/PaymentDrivers/Razorpay/Hosted.php b/app/PaymentDrivers/Razorpay/Hosted.php index 659b0f06fbc0..28f9be178172 100644 --- a/app/PaymentDrivers/Razorpay/Hosted.php +++ b/app/PaymentDrivers/Razorpay/Hosted.php @@ -16,9 +16,19 @@ namespace App\PaymentDrivers\Razorpay; use App\Http\Requests\Request; use App\Http\Requests\ClientPortal\Payments\PaymentResponseRequest; use App\PaymentDrivers\Common\MethodInterface; +use App\PaymentDrivers\RazorpayPaymentDriver; class Hosted implements MethodInterface { + protected RazorpayPaymentDriver $razorpay; + + public function __construct(RazorpayPaymentDriver $razorpay) + { + $this->razorpay = $razorpay; + + $this->razorpay->init(); + } + public function authorizeView(array $data) { } public function authorizeResponse(Request $request) { }