protected function currencyStringToNumeric($currency)
    {
        if (!in_array(strtolower($currency), array_keys(self::$currencyCodes))) {
            throw new HpsArgumentException(
                'Currency is not supported',
                HpsExceptionCodes::INVALID_CURRENCY
            );
        }
        return self::$currencyCodes[strtolower($currency)];
    }
protected function currencyStringToNumeric($currency)
    {
        if (!in_array(strtolower($currency), array_keys(self::$currencyCodes))) {
            throw new HpsArgumentException(
                'Currency is not supported',
                HpsExceptionCodes::INVALID_CURRENCY
            );
        }
        return self::$currencyCodes[strtolower($currency)];
    }
protected function currencyStringToNumeric ( $ currency ) { if ( ! in_array ( strtolower ( $ currency ) , array_keys ( self :: $ currencyCodes ) ) ) { throw new HpsArgumentException ( 'Currency is not supported' , HpsExceptionCodes :: INVALID_CURRENCY ) ; } return self :: $ currencyCodes [ strtolower ( $ currency ) ] ; }
Converts a 3-letter currency code to 3-digit ISO 4217 version

@param string $currency currency code

@return string
@throws \HpsArgumentException
@raises HpsArgumentException
Converts a 3 - letter currency code to 3 - digit ISO 4217 version