45 $this->_aViewData[
'oxid'] = $this->
getConfig()->getShopId();
48 $aIds = $this->_aViewData[
"confaarrs"][
'iShopID_TrustedShops'];
50 if ($aConfStrs = $this->_aViewData[
"str"][
'iShopID_TrustedShops']) {
51 $aIds = array(0 => $aConfStrs);
54 $this->_aViewData[
"aShopID_TrustedShops"] = $aIds;
55 $this->_aViewData[
'aTsUser'] = $this->_aViewData[
"confaarrs"][
'aTsUser'];
56 $this->_aViewData[
'aTsPassword'] = $this->_aViewData[
"confaarrs"][
'aTsPassword'];
57 $this->_aViewData[
'tsTestMode'] = $this->_aViewData[
"confbools"][
'tsTestMode'];
58 $this->_aViewData[
'tsSealActive'] = $this->_aViewData[
"confbools"][
'tsSealActive'];
63 return "dyn_trusted.tpl";
76 foreach ($aConfStr as $sKey => $sConfStrs) {
79 $sConfStrs = trim($sConfStrs);
81 if ($oResults && ($oResults->stateEnum ==
"PRODUCTION" || $oResults->stateEnum ==
"TEST")) {
82 $sTsType[$sKey] = $oResults->typeEnum;
84 if ($oResults && $oResults->stateEnum ==
"INTEGRATION") {
85 $sErrorMessage = $oResults->stateEnum;
86 $sTsType[$sKey] = $oResults->typeEnum;
89 $sErrorMessage = $oResults->stateEnum;
97 $aTSIds = array_filter($aConfStr);
98 if ($blNotEmpty && (count(array_unique($aTSIds)) < count($aTSIds))) {
105 $myConfig->saveShopConfVar(
"aarr",
'iShopID_TrustedShops', $aConfStr, $sShopId);
110 $myConfig->saveShopConfVar(
"aarr",
'tsSealType', $sTsType, $sShopId);
113 $this->_aViewData[
"errorsaving"] = 1;
114 $this->_aViewData[
"errormessage"] = $sErrorMessage;
115 $this->_aViewData[
"aShopID_TrustedShops"] = null;
126 return 'dyn_interface';
136 if ($this->_oPaymentTypes == null) {
139 $this->_oPaymentTypes =
oxNew(
"oxlist");
140 $this->_oPaymentTypes->init(
"oxpayment");
141 $oListObject = $this->_oPaymentTypes->getBaseObject();
143 $this->_oPaymentTypes->getList();
146 return $this->_oPaymentTypes;
158 $oTsProtection =
oxNew(
"oxtsprotection");
159 $oResults = $oTsProtection->checkCertificate($sConfStrs,
oxRegistry::getConfig()->getRequestParameter(
"tsTestMode"));
171 if (is_array($aPaymentIds)) {
172 foreach ($aPaymentIds as $sShopPayId => $sTsPayId) {
173 $aPayment =
oxNew(
"oxpayment");
174 if ($aPayment->load($sShopPayId)) {
175 $aPayment->oxpayments__oxtspaymentid =
new oxField($sTsPayId);