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) { }