From 77e9b55f923b47ae9cca6a192e06bb22629b396e Mon Sep 17 00:00:00 2001 From: Sapayth Hossain Date: Tue, 12 Dec 2023 13:04:29 +0600 Subject: [PATCH] fix: paypal payment --- includes/Frontend.php | 1 + wpuf.php | 1 + 2 files changed, 2 insertions(+) diff --git a/includes/Frontend.php b/includes/Frontend.php index 01a36754e..0ca31f516 100644 --- a/includes/Frontend.php +++ b/includes/Frontend.php @@ -13,6 +13,7 @@ #[AllowDynamicProperties] class Frontend { use ContainerTrait; + public function __construct() { $this->frontend_form = new Frontend\Frontend_Form(); $this->registration = new Frontend\Registration(); diff --git a/wpuf.php b/wpuf.php index 594ade365..8837b9c91 100644 --- a/wpuf.php +++ b/wpuf.php @@ -160,6 +160,7 @@ public function instantiate() { $this->subscription = new WeDevs\Wpuf\Admin\Subscription(); $this->fields = new WeDevs\Wpuf\Admin\Forms\Field_Manager(); $this->customize = new WeDevs\Wpuf\Admin\Customizer_Options(); + $this->paypal = new WeDevs\Wpuf\Lib\Gateway\Paypal(); if ( is_admin() ) { $this->admin = new WeDevs\Wpuf\Admin();