Automattic\WooCommerce\Gateways\PayPal
Helper::is_country_supported_by_paypal
Check if a country code is supported by PayPal.
Method of the class: Helper{}
No Hooks.
Returns
true|false. True if the country is supported by PayPal, false otherwise.
Usage
$result = Helper::is_country_supported_by_paypal( $country_code ): bool;
- $country_code(string) (required)
- Country code.
Helper::is_country_supported_by_paypal() Helper::is country supported by paypal code WC 10.8.1
public static function is_country_supported_by_paypal( string $country_code ): bool {
return array_key_exists( $country_code, PayPalConstants::SUPPORTED_COUNTRIES );
}