Fix store base location eligibility check to limit to USA

This commit is contained in:
Eric Jinks 2022-05-04 21:57:10 +10:00
parent f9fd51e81c
commit b32a8f49a9
No known key found for this signature in database
GPG Key ID: 22C09ACBC4DC9279
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}