Automattic\WooCommerce\Gateways\PayPal

Helper::is_country_supported_by_paypalpublic staticWC 1.0

Check if a country code is supported by PayPal.

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

Хуков нет.

Возвращает

true|false. 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.0.1

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