function ICEPAYOneOffPay($orderInfo, $params = array())
 {
     require_once OSEMSC_B_LIB . DS . 'icepayAPI' . DS . 'icepay.php';
     $pConfig = oseMscConfig::getConfig('payment', 'obj');
     $merchant_id = $pConfig->icepay_merchant_id;
     $secret_code = $pConfig->icepay_secret_code;
     $icepay_country = $pConfig->icepay_country;
     $icepay_lang = $pConfig->icepay_lang;
     $db = oseDB::instance();
     $payment = oseRegistry::call('payment');
     $paymentOrder = $payment->getInstance('Order');
     $billinginfo = $paymentOrder->getBillingInfo($orderInfo->user_id);
     if (empty($icepay_country)) {
         $query = "SELECT country_2_code FROM `#__osemsc_country` WHERE `country_3_code` = '{$billinginfo->country}'";
         $db->setQuery($query);
         $icepay_country = $db->loadResult();
     }
     if (empty($icepay_lang)) {
         $lang =& JFactory::getLanguage();
         $arr = explode("-", $lang->get('tag'));
         $icepay_lang = strtoupper($arr[0]);
     }
     //$orderInfo->payment_price = "19.99";
     $amount = intval(strval(100 * $orderInfo->payment_price));
     $Desc = $this->generateDesc($orderInfo->order_id);
     $currency = $orderInfo->payment_currency;
     $tran = new ICEPAY($merchant_id, $secret_code);
     $tran->SetOrderID($orderInfo->order_id);
     $tran->SetReference($orderInfo->order_number);
     //$tran->assignCountry('US');
     //$tran->assignLanguage('EN');
     //$tran->assignCurrency($currency);
     //$tran->assignAmount($amount);
     return $tran->Pay($icepay_country, $icepay_lang, $currency, $amount, $Desc);
 }