Looks like the cryptocoincharts.info API is no longer available, it was used to get the exchange rate for altcoins during checkout. For now the issue can be fixed by doing the following.
Open sci/gateways/default/config.php and you should see these two lines near the bottom:
Code: Select all
$altcoin_api = 'http://api.cryptocoincharts.info/tradingPair/';
$alt_btc_api = $altcoin_api.strtolower($altcoin_code)."_btc";
Replace them both with this single line of code:
Code: Select all
$alt_btc_api = 'https://min-api.cryptocompare.com/data/price?fsym='.strtoupper($altcoin_code).'&tsyms=BTC';
Next open lib/special.lib.php and replace the alt_btc_pair() function with this:
Code: Select all
function alt_btc_pair($btc_val, $api_url) {
$alt_parr = json_decode(bitsci::curl_simple_post($api_url));
if (!empty($alt_parr) && bccomp($alt_parr->BTC, '0') == 1) {
return bcdiv($btc_val, $alt_parr->BTC);
} else {
return false;
}
}