src/icepay_api_basic.php
public function filterByLanguage($language) {
        foreach ($this->_paymentMethod as $name => $class) {
            if (!in_array(strtoupper($language), $class->getSupportedLanguages()) && !in_array('00', $class->getSupportedLanguages()))
                unset($this->paymentMethods[$name]);
        }
        return $this;
    }
public function filterByLanguage($language) {
        foreach ($this->_paymentMethod as $name => $class) {
            if (!in_array(strtoupper($language), $class->getSupportedLanguages()) && !in_array('00', $class->getSupportedLanguages()))
                unset($this->paymentMethods[$name]);
        }
        return $this;
    }
public function filterByLanguage ( $ language ) { foreach ( $ this -> _paymentMethod as $ name => $ class ) { if ( ! in_array ( strtoupper ( $ language ) , $ class -> getSupportedLanguages ( ) ) && ! in_array ( '00' , $ class -> getSupportedLanguages ( ) ) ) unset ( $ this -> paymentMethods [ $ name ] ) ; } return $ this ; }
Filter the paymentmethods array by language
@since version 1.0.0
@access public
@param string $language Language ISO 639-1 code
Filter the paymentmethods array by language