public static function checkCurrency($country, $currency)
    {
        switch($country) {
        case KlarnaCountry::AT:
        case KlarnaCountry::DE:
        case KlarnaCountry::NL:
        case KlarnaCountry::FI:
            return ($currency === KlarnaCurrency::EUR);
        case KlarnaCountry::DK:
            return ($currency === KlarnaCurrency::DKK);
        case KlarnaCountry::NO:
            return ($currency === KlarnaCurrency::NOK);
        case KlarnaCountry::SE:
            return ($currency === KlarnaCurrency::SEK);
        default:
            //Country not yet supported by Klarna.
            return false;
        }
    }
public static function checkCurrency($country, $currency)
    {
        switch($country) {
        case KlarnaCountry::AT:
        case KlarnaCountry::DE:
        case KlarnaCountry::NL:
        case KlarnaCountry::FI:
            return ($currency === KlarnaCurrency::EUR);
        case KlarnaCountry::DK:
            return ($currency === KlarnaCurrency::DKK);
        case KlarnaCountry::NO:
            return ($currency === KlarnaCurrency::NOK);
        case KlarnaCountry::SE:
            return ($currency === KlarnaCurrency::SEK);
        default:
            //Country not yet supported by Klarna.
            return false;
        }
    }
public static function checkCurrency ( $ country , $ currency ) { switch ( $ country ) { case KlarnaCountry :: AT : case KlarnaCountry :: DE : case KlarnaCountry :: NL : case KlarnaCountry :: FI : return ( $ currency === KlarnaCurrency :: EUR ) ; case KlarnaCountry :: DK : return ( $ currency === KlarnaCurrency :: DKK ) ; case KlarnaCountry :: NO : return ( $ currency === KlarnaCurrency :: NOK ) ; case KlarnaCountry :: SE : return ( $ currency === KlarnaCurrency :: SEK ) ; default : //Country not yet supported by Klarna. return false ; } }
Checks country against language and returns true if they match.

@param int $country  {@link KlarnaCountry}
@param int $currency {@link KlarnaCurrency}

@deprecated Do not use.

@return bool
Checks country against language and returns true if they match .