Example #1
0
 /**
  * Call centinel api authentication method
  *
  * @return Mage_Centinel_Model_Api
  */
 public function callAuthentication($data)
 {
     $result = new Varien_Object();
     $clientResponse = $this->_call('cmpi_authenticate', array('TransactionId' => $data->getTransactionId(), 'PAResPayload' => $data->getPaResPayload()));
     $result->setErrorNo($clientResponse->getValue('ErrorNo'));
     $result->setErrorDesc($clientResponse->getValue('ErrorDesc'));
     $result->setPaResStatus($clientResponse->getValue('PAResStatus'));
     $result->setSignatureVerification($clientResponse->getValue('SignatureVerification'));
     $result->setCavv($clientResponse->getValue('Cavv'));
     $result->setEciFlag($clientResponse->getValue('EciFlag'));
     $result->setXid($clientResponse->getValue('Xid'));
     return $result;
 }