src/Klarna.php
public function setCountry($country)
    {
        if (!is_numeric($country)
            && (strlen($country) == 2 || strlen($country) == 3)
        ) {
            $country = KlarnaCountry::fromCode($country);
        }
        $this->_checkCountry($country);
        $this->_country = $country;
    }
public function setCountry($country)
    {
        if (!is_numeric($country)
            && (strlen($country) == 2 || strlen($country) == 3)
        ) {
            $country = KlarnaCountry::fromCode($country);
        }
        $this->_checkCountry($country);
        $this->_country = $country;
    }
public function setCountry ( $ country ) { if ( ! is_numeric ( $ country ) && ( strlen ( $ country ) == 2 || strlen ( $ country ) == 3 ) ) { $ country = KlarnaCountry :: fromCode ( $ country ) ; } $ this -> _checkCountry ( $ country ) ; $ this -> _country = $ country ; }
Sets the country used.

<b>Note</b>:<br>
If you input 'dk', 'fi', 'de', 'nl', 'no' or 'se', <br>
then currency and language will be set to mirror that country.<br>

@param string|int $country {@link KlarnaCountry}

@see KlarnaCountry

@throws KlarnaException
@return void
Sets the country used .