Exemple #1
0
 /**
  * @param Payone_Api_Request_Interface $request
  */
 protected function mapDefaultParameters(Payone_Api_Request_Interface $request)
 {
     $helper = $this->helper();
     $solutionName = 'noovias';
     $solutionVersion = $helper->getPayoneVersion();
     $integratorName = 'magento';
     $integratorVersion = $helper->getMagentoVersion();
     $request->setEncoding('UTF-8');
     $request->setMid($this->getConfigPayment()->getMid());
     $request->setPortalid($this->getConfigPayment()->getPortalid());
     $request->setMode($this->getConfigPayment()->getMode());
     $request->setKey($this->getConfigPayment()->getKey());
     $request->setIntegratorName($integratorName);
     $request->setIntegratorVersion($integratorVersion);
     $request->setSolutionName($solutionName);
     $request->setSolutionVersion($solutionVersion);
 }