PATH:
home
/
lab2454c
/
equitablegold.com
/
wp-content
/
plugins
/
woocommerce-gateway-stripe
/
includes
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } class WC_Stripe_Feature_Flags { const UPE_CHECKOUT_FEATURE_ATTRIBUTE_NAME = 'upe_checkout_experience_enabled'; /** * Checks whether UPE "preview" feature flag is enabled. * This allows the merchant to enable/disable UPE checkout. * * @return bool */ public static function is_upe_preview_enabled() { return 'yes' === get_option( '_wcstripe_feature_upe', 'yes' ); } /** * Checks whether UPE is enabled. * * @return bool */ public static function is_upe_checkout_enabled() { $stripe_settings = get_option( 'woocommerce_stripe_settings', null ); return ! empty( $stripe_settings[ self::UPE_CHECKOUT_FEATURE_ATTRIBUTE_NAME ] ) && 'yes' === $stripe_settings[ self::UPE_CHECKOUT_FEATURE_ATTRIBUTE_NAME ]; } /** * Checks whether UPE has been manually disabled by the merchant. * * @return bool */ public static function did_merchant_disable_upe() { $stripe_settings = get_option( 'woocommerce_stripe_settings', null ); return ! empty( $stripe_settings[ self::UPE_CHECKOUT_FEATURE_ATTRIBUTE_NAME ] ) && 'disabled' === $stripe_settings[ self::UPE_CHECKOUT_FEATURE_ATTRIBUTE_NAME ]; } }
[+]
connect
[-] class-wc-stripe-logger.php
[edit]
[-] class-wc-stripe-payment-tokens.php
[edit]
[+]
constants
[-] class-wc-stripe-webhook-state.php
[edit]
[+]
admin
[-] class-wc-stripe-customer.php
[edit]
[+]
..
[-] class-wc-stripe-helper.php
[edit]
[-] class-wc-stripe-webhook-handler.php
[edit]
[+]
notes
[-] class-wc-stripe-exception.php
[edit]
[-] class-wc-stripe-apple-pay-registration.php
[edit]
[-] class-wc-stripe-intent-controller.php
[edit]
[+]
deprecated
[-] class-wc-stripe-api.php
[edit]
[-] class-wc-stripe-upe-compatibility.php
[edit]
[+]
compat
[-] class-wc-stripe-blocks-support.php
[edit]
[-] class-wc-stripe-order-handler.php
[edit]
[-] class-wc-stripe-link-payment-token.php
[edit]
[-] class-wc-stripe-feature-flags.php
[edit]
[+]
payment-methods
[+]
migrations
[-] class-wc-gateway-stripe.php
[edit]
[-] class-wc-stripe-account.php
[edit]
[-] class-wc-stripe-sepa-payment-token.php
[edit]
[+]
abstracts