403Webshell
Server IP : 172.67.147.195  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/public_html/wp-content/plugins/woocommerce-payments/src/Internal/Payment/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/plugins/woocommerce-payments/src/Internal/Payment//Factor.php
<?php
/**
 * Class Factor
 *
 * @package WooCommerce\Payments
 */

namespace WCPay\Internal\Payment;

use WCPay\Constants\Base_Constant;

/**
 * A class for payment factors.
 *
 * These factors will be used to determine whether to enter the new
 * payment process until it is fully developed and this class gets removed.
 */
class Factor extends Base_Constant {
	/**
	 * Base flag, used to determine whether the new payment process
	 * can be entered at all, even if no other factors are present.
	 *
	 * Provided by the server, and used only within PaymentProcessingService.
	 * There is no need to provide it to `should_use_new_payment_process`.
	 */
	const NEW_PAYMENT_PROCESS = 'NEW_PAYMENT_PROCESS';

	/**
	 * Zero payment amount, e.g. whether there is no payment to process at all.
	 * This excludes free subscription signups.
	 * Type: Condition
	 */
	const NO_PAYMENT = 'NO_PAYMENT';

	/**
	 * Saved payment method is used.
	 * Type: Condition
	 */
	const USE_SAVED_PM = 'USE_SAVED_PM';

	/**
	 * Requirement to save the payment method (choice or subscriptions).
	 * Type: Condition
	 */
	const SAVE_PM = 'SAVE_PM';

	/**
	 * The order includes a subscription (sign-up).
	 * Type: Condition
	 */
	const SUBSCRIPTION_SIGNUP = 'SUBSCRIPTION_SIGNUP';

	/**
	 * Subscription renewal entry point.
	 * Type: Entry point
	 */
	const SUBSCRIPTION_RENEWAL = 'SUBSCRIPTION_RENEWAL';

	/**
	 * The 3DS/SCA post-authentication process is a separate entry point, not a flow.
	 * Type: Entry point
	 */
	const POST_AUTHENTICATION = 'POST_AUTHENTICATION';

	/**
	 * WooPay: When enabled, it can overwrite the payment method during checkout. We could disable routing when enabled.
	 * Type: Condition
	 */
	const WOOPAY_ENABLED = 'WOOPAY_ENABLED';

	/**
	 * WooPay: WooPay payments (already created intents).
	 * Type: Condition
	 */
	const WOOPAY_PAYMENT = 'WOOPAY_PAYMENT';

	/**
	 * WCPay Subs are working through Subscriptions code, and can be considered together with renewals.
	 * Type: Entry point
	 */
	const WCPAY_SUBSCRIPTION_SIGNUP = 'WCPAY_SUBSCRIPTION_SIGNUP';

	/**
	 * IPP capture (completion).
	 * Currently, it’s mostly independent of the payment process, but could be another entry point, starting with a specific state.
	 * Type: Entry point
	 */
	const IPP_CAPTURE = 'IPP_CAPTURE';

	/**
	 * Stripe Link only works with UPE for now.
	 * So until we (potentially) get to implement UPE, it cannot be a part of the new payment process.
	 * Type: Condition
	 */
	const STRIPE_LINK = 'STRIPE_LINK';

	/**
	 * Payment request buttons (Google Pay and Apple Pay)
	 * Type: Entry point
	 */
	const PAYMENT_REQUEST = 'PAYMENT_REQUEST';

	/**
	 * ECE buttons (Google Pay and Apple Pay)
	 * Type: Entry point
	 */
	const EXPRESS_CHECKOUT_ELEMENT = 'EXPRESS_CHECKOUT_ELEMENT';

	/**
	 * Returns all possible factors.
	 *
	 * @psalm-suppress MissingThrowsDocblock
	 * @return Factor[]
	 */
	public static function get_all_factors() {
		return [
			static::NEW_PAYMENT_PROCESS(),
			static::NO_PAYMENT(),
			static::USE_SAVED_PM(),
			static::SAVE_PM(),
			static::SUBSCRIPTION_SIGNUP(),
			static::SUBSCRIPTION_RENEWAL(),
			static::POST_AUTHENTICATION(),
			static::WOOPAY_ENABLED(),
			static::WOOPAY_PAYMENT(),
			static::WCPAY_SUBSCRIPTION_SIGNUP(),
			static::IPP_CAPTURE(),
			static::STRIPE_LINK(),
			static::PAYMENT_REQUEST(),
			static::EXPRESS_CHECKOUT_ELEMENT(),
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit