[英]INR to USD convert values in opencart
如何在opencart中将INR卢比转换为美元。 我已经尝试过以下代码...
$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;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.