47         $this->_aViewData[
'oxid'] = $this->
getConfig()->getShopId();
 
   50         $aIds = $this->_aViewData[
"confaarrs"][
'iShopID_TrustedShops'];
 
   52         if ($aConfStrs = $this->_aViewData[
"str"][
'iShopID_TrustedShops']) {
 
   53             $aIds = array(0 => $aConfStrs);
 
   56         $this->_aViewData[
"aShopID_TrustedShops"] = $aIds;
 
   57         $this->_aViewData[
'aTsUser'] = $this->_aViewData[
"confaarrs"][
'aTsUser'];
 
   58         $this->_aViewData[
'aTsPassword'] = $this->_aViewData[
"confaarrs"][
'aTsPassword'];
 
   59         $this->_aViewData[
'tsTestMode'] = $this->_aViewData[
"confbools"][
'tsTestMode'];
 
   60         $this->_aViewData[
'tsSealActive'] = $this->_aViewData[
"confbools"][
'tsSealActive'];
 
   65         return "dyn_trusted.tpl";
 
   78         foreach ($aConfStr as $sKey => $sConfStrs) {
 
   81                 $sConfStrs = trim($sConfStrs);
 
   83                 if ($oResults && ($oResults->stateEnum == 
"PRODUCTION" || $oResults->stateEnum == 
"TEST")) {
 
   84                     $sTsType[$sKey] = $oResults->typeEnum;
 
   86                     if ($oResults && $oResults->stateEnum == 
"INTEGRATION") {
 
   87                         $sErrorMessage = $oResults->stateEnum;
 
   88                         $sTsType[$sKey] = $oResults->typeEnum;
 
   91                             $sErrorMessage = $oResults->stateEnum;
 
   99         $aTSIds = array_filter($aConfStr);
 
  100         if ($blNotEmpty && (count(array_unique($aTSIds)) < count($aTSIds))) {
 
  107             $myConfig->saveShopConfVar(
"aarr", 
'iShopID_TrustedShops', $aConfStr, $sShopId);
 
  112             $myConfig->saveShopConfVar(
"aarr", 
'tsSealType', $sTsType, $sShopId);
 
  115             $this->_aViewData[
"errorsaving"] = 1;
 
  116             $this->_aViewData[
"errormessage"] = $sErrorMessage;
 
  117             $this->_aViewData[
"aShopID_TrustedShops"] = null;
 
  128         return 'dyn_interface';
 
  138         if ($this->_oPaymentTypes == null) {
 
  141             $this->_oPaymentTypes = 
oxNew(
"oxlist");
 
  142             $this->_oPaymentTypes->init(
"oxpayment");
 
  143             $oListObject = $this->_oPaymentTypes->getBaseObject();
 
  145             $this->_oPaymentTypes->getList();
 
  148         return $this->_oPaymentTypes;
 
  160         $oTsProtection = 
oxNew(
"oxtsprotection");
 
  161         $oResults = $oTsProtection->checkCertificate($sConfStrs, 
oxRegistry::getConfig()->getRequestParameter(
"tsTestMode"));
 
  173         if (is_array($aPaymentIds)) {
 
  174             foreach ($aPaymentIds as $sShopPayId => $sTsPayId) {
 
  175                 $aPayment = 
oxNew(
"oxpayment");
 
  176                 if ($aPayment->load($sShopPayId)) {
 
  177                     $aPayment->oxpayments__oxtspaymentid = 
new oxField($sTsPayId);