Как конвертировать рупии INR в доллары США в opencart. Я пробовал этот код ниже...
$json_from = number_format($item_total, 2, '.', '');
$url = "http://rate-exchange.appspot.com/currency?from='.$json_from.'&to=USD";
$jsons = @file_get_contents($url);
$json_data = json_decode($jsons, true);
$to_cur = $json_data['results'][0];
$data['PAYMENTREQUEST_0_ITEMAMT'] = $to_curr;
$data['PAYMENTREQUEST_0_AMT'] = $to_curr;