public function getConfigValue($curr, $amount, $store = null, $ccType = "installments")
    {
        $value = $this->getInstallments($store, $ccType);

        if ($this->_isEncodedArrayFieldValue($value)) {
            $value = $this->_decodeArrayFieldValue($value);
        }

        $cur_minimal_boundary = -1;
        $resulting_freq = 1;
        foreach ($value as $row) {
            list($currency, $boundary, $frequency) = $row;
            if ($curr == $currency) {
                if ($amount <= $boundary && ($boundary <= $cur_minimal_boundary || $cur_minimal_boundary == -1)) {
                    $cur_minimal_boundary = $boundary;
                    $resulting_freq = $frequency;
                }

                if ($boundary == "" && $cur_minimal_boundary == -1) {
                    $resulting_freq = $frequency;
                }
            }
        }

        return $resulting_freq;
    }