HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/tutor/ecommerce/PaymentGateways/PaypalGateway.php
<?php
/**
 * Payment gateway concrete class
 *
 * @package Tutor\Ecommerce
 * @author Themeum
 * @link https://themeum.com
 * @since 3.0.0
 */

namespace Tutor\PaymentGateways;

use Ollyo\PaymentHub\Payments\Paypal\Paypal;
use Tutor\PaymentGateways\Configs\PaypalConfig;

/**
 * Paypal payment gateway class
 */
class PaypalGateway extends GatewayBase {

	/**
	 * Payment gateway root dir name
	 *
	 * @since 3.0.0
	 *
	 * @var string
	 */
	private $dir_name = 'Paypal';

	/**
	 * Payment gateway config class
	 *
	 * @since 3.0.0
	 *
	 * @var string
	 */
	private $config_class = PaypalConfig::class;

	/**
	 * Payment core class
	 *
	 * @since 3.0.0
	 *
	 * @var string
	 */
	private $payment_class = Paypal::class;

	/**
	 * Root dir name of payment gateway src
	 *
	 * @since 3.0.0
	 *
	 * @return string
	 */
	public function get_root_dir_name():string {
		return $this->dir_name;
	}

	/**
	 * Payment class from payment hub
	 *
	 * @since 3.0.0
	 *
	 * @return string
	 */
	public function get_payment_class():string {
		return $this->payment_class;
	}

	/**
	 * Payment config class
	 *
	 * @since 3.0.0
	 *
	 * @return string
	 */
	public function get_config_class():string {
		return $this->config_class;
	}

	/**
	 * Return autoload file
	 *
	 * @since 3.0.0
	 *
	 * @return string
	 */
	public static function get_autoload_file() {
		return tutor()->path . 'ecommerce/PaymentGateways/Paypal/vendor/autoload.php';
	}
}