45 $this->_sJoinUrl = $this->
getBaseUri() .
'join/';
46 $this->_sReturnUrl = $this->
getBaseUri() .
'cart/';
47 $this->_sDataReturnUrl = $this->
getBaseUri() .
'act_finalize_checkout/';
49 $this->_iOrdersPerPage = 10;
50 $this->_iHistoryPerPage = 10;
54 $this->_sAnimationEffect =
'fade';
55 $this->_iAnimationSpeed =
'slow';
57 $this->_aPrefixes = array(
58 'general' =>
'ch_pmt_',
59 'langs' =>
'_payment_',
62 $this->_aJsClasses = array(
63 'cart' =>
'ChPmtCart',
64 'orders' =>
'ChPmtOrders'
66 $this->_aJsObjects = array(
68 'orders' =>
'oPmtOrders'
71 $this->_sOptionsCategory =
'Payment';
78 $this->_iSiteId = (int)$this->_oDb->getParam($sOptionPrefix .
'site_admin');
79 $this->_sCurrencySign = $this->_oDb->getParam($sOptionPrefix .
'default_currency_sign');
80 $this->_sCurrencyCode = $this->_oDb->getParam($sOptionPrefix .
'default_currency_code');
92 if(
empty($this->_iSiteId))
93 return $this->_oDb->getFirstAdminId();
112 if($bSsl && strpos(
$sResult,
'https://') ===
false)
120 if($bSsl && strpos(
$sResult,
'https://') ===
false)
162 return $this->_aPrefixes[
'general'];
166 return $this->_aPrefixes[
'general'];
170 return $this->_aPrefixes[
'langs'];
174 return $this->_aPrefixes[
'options'];
185 return isset($this->_aJsClasses[
$sType]) ? $this->_aJsClasses[
$sType] :
'';
195 $sResult = $this->_aJsObjects[
'cart'];
199 $sResult = $this->_aJsObjects[
'orders'];
208 list($fMilliSec, $iSec) = explode(
' ', microtime());
209 $fSeed = (float)$iSec + ((
float)$fMilliSec * 100000);
213 for($i=0; $i < 16; ++$i) {
216 $c = chr(rand(ord(
'A'),ord(
'Z')));
219 $c = chr(rand(ord(
'0'),ord(
'9')));