WC_Admin_Setup_Wizard::is_klarna_payments_supported_countryprotectedWC 1.0

Deprecated since 4.6.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Is Klarna Payments country supported.

Method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Returns

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_klarna_payments_supported_country( $country_code );
$country_code(string) (required)
Country code.

Changelog

Deprecated since 4.6.0

WC_Admin_Setup_Wizard::is_klarna_payments_supported_country() code WC 10.6.2

protected function is_klarna_payments_supported_country( $country_code ) {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	$supported_countries = array(
		'DK', // Denmark.
		'DE', // Germany.
		'AT', // Austria.
	);
	return in_array( $country_code, $supported_countries, true );
}