Automattic\WooCommerce\Gateways\PayPal

Helper::is_country_supported_by_paypal │ public static │ WC 1.0

Check if a country code is supported by PayPal.

Метод класса: Helper{}

Хуков нет.

Возвращает

bool. True if the country is supported by PayPal, false otherwise.

Использование

$result = Helper::is_country_supported_by_paypal( $country_code ): bool;
$country_code(строка) (обязательный)
Country code.

Код Helper::is_country_supported_by_paypal() WC 11.2.2

public static function is_country_supported_by_paypal( string $country_code ): bool {
	return array_key_exists( $country_code, PayPalConstants::SUPPORTED_COUNTRIES );
}