/** * Executes Trusted shops protection order. * * @param oxBasket $oBasket basket object * * @return bool */ protected function _executeTsProtection(oxBasket $oBasket) { $aValues['tsProductId'] = $this->oxorder__oxtsprotectid->value; $aValues['amount'] = $oBasket->getTsInsuredSum(); $oCur = $this->getConfig()->getActShopCurrencyObject(); $aValues['currency'] = $oCur->name; $aValues['buyerEmail'] = $this->oxorder__oxbillemail->value; $aValues['shopCustomerID'] = $this->oxorder__oxuserid->value; $aValues['shopOrderID'] = $this->oxorder__oxordernr->value; $aValues['orderDate'] = $this->oxorder__oxorderdate->value; $sPaymentId = $oBasket->getPaymentId(); /** @var oxTsProtection $oTsProtection */ $oTsProtection = oxNew('oxtsprotection'); $oTsProtection->requestForTsProtection($aValues, $sPaymentId); return true; }