diff --git a/changelog/fix-woopay-direct-checkout-feature-check b/changelog/fix-woopay-direct-checkout-feature-check new file mode 100644 index 00000000000..b52e9e6e556 --- /dev/null +++ b/changelog/fix-woopay-direct-checkout-feature-check @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix WooPay Direct Checkout feature check. diff --git a/includes/class-wc-payments-features.php b/includes/class-wc-payments-features.php index 5634b19cb04..51cbc9686d1 100644 --- a/includes/class-wc-payments-features.php +++ b/includes/class-wc-payments-features.php @@ -270,7 +270,7 @@ public static function is_woopay_direct_checkout_enabled() { $is_direct_checkout_eligible = is_array( $account_cache ) && ( $account_cache['platform_direct_checkout_eligible'] ?? false ); $is_direct_checkout_flag_enabled = '1' === get_option( self::WOOPAY_DIRECT_CHECKOUT_FLAG_NAME, '1' ); - return $is_direct_checkout_eligible && $is_direct_checkout_flag_enabled && self::is_woopay_eligible(); + return $is_direct_checkout_eligible && $is_direct_checkout_flag_enabled && self::is_woopay_enabled(); } /**