Automattic\WooCommerce\Gateways\PayPal
Helper::is_country_supported_by_paypal
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() 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 );
}