43 $this->_aViewData[
'oxid'] = $this->
getConfig()->getShopId();
46 $aIds = $this->_aViewData[
"confaarrs"][
'iShopID_TrustedShops'];
48 if ( $aConfStrs = $this->_aViewData[
"str"][
'iShopID_TrustedShops'] ) {
49 $aIds = array( 0 => $aConfStrs );
52 $this->_aViewData[
"aShopID_TrustedShops"] = $aIds;
53 $this->_aViewData[
'aTsUser'] = $this->_aViewData[
"confaarrs"][
'aTsUser'];
54 $this->_aViewData[
'aTsPassword'] = $this->_aViewData[
"confaarrs"][
'aTsPassword'];
55 $this->_aViewData[
'tsTestMode'] = $this->_aViewData[
"confbools"][
'tsTestMode'];
56 $this->_aViewData[
'tsSealActive'] = $this->_aViewData[
"confbools"][
'tsSealActive'];
61 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;
83 }
else if ( $oResults && $oResults->stateEnum ==
"INTEGRATION" ) {
84 $sErrorMessage = $oResults->stateEnum;
85 $sTsType[$sKey] = $oResults->typeEnum;
88 $sErrorMessage = $oResults->stateEnum;
95 $aTSIds = array_filter( $aConfStr );
96 if ( $blNotEmpty && ( count( array_unique( $aTSIds ) ) < count( $aTSIds ) ) ) {
103 $myConfig->saveShopConfVar(
"aarr",
'iShopID_TrustedShops', $aConfStr, $sShopId );
108 $myConfig->saveShopConfVar(
"aarr",
'tsSealType', $sTsType, $sShopId );
111 $this->_aViewData[
"errorsaving"] = 1;
112 $this->_aViewData[
"errormessage"] = $sErrorMessage;
113 $this->_aViewData[
"aShopID_TrustedShops"] = null;
124 return 'dyn_interface';
134 if ( $this->_oPaymentTypes == null ) {
137 $this->_oPaymentTypes =
oxNew(
"oxlist" );
138 $this->_oPaymentTypes->init(
"oxpayment");
139 $oListObject = $this->_oPaymentTypes->getBaseObject();
141 $this->_oPaymentTypes->getList();
143 return $this->_oPaymentTypes;
155 if ( strlen( $sConfStrs ) != 33 || substr( $sConfStrs, 0, 1 ) !=
'X' ) {
158 $oTsProtection =
oxNew(
"oxtsprotection");
172 if ( $aPaymentIds ) {
173 foreach ( $aPaymentIds as $sShopPayId => $sTsPayId ) {
174 $aPayment =
oxNew(
"oxpayment");
175 if ( $aPayment->load($sShopPayId) ) {
176 $aPayment->oxpayments__oxtspaymentid =
new oxField($sTsPayId);