From b32a8f49a997526973ba0b93112017f55d24329f Mon Sep 17 00:00:00 2001 From: Eric Jinks Date: Wed, 4 May 2022 21:57:10 +1000 Subject: [PATCH] Fix store base location eligibility check to limit to USA --- .../woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php b/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php index 3095c976522..cfaa159a931 100644 --- a/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php +++ b/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php @@ -93,7 +93,8 @@ class WcPaySubscriptionsPage { } // Ineligible if store address is not compatible with WCPay Subscriptions (US). - if ( ! WooCommercePayments::is_supported() ) { + $store_base_location = wc_get_base_location(); + if ( empty( $store_base_location['country'] ) || 'US' !== $store_base_location['country'] ) { return false; }