public function isError()
 {
     $error = parent::isError();
     if (isset($this->getResponse()->checkout) && isset($this->getResponse()->checkout->status)) {
         $error = $error || $this->getResponse()->checkout->status == 'error';
     }
     return $error;
 }
 function Response($filePath, $className)
 {
     parent::ResponseBase($filePath, $className);
     require_once Configuration::Instance()->GetValue('application', 'gtfw_base') . 'main/lib/nusoap/nusoap.php';
     require_once Configuration::Instance()->GetValue('application', 'gtfw_base') . 'main/lib/gtfw/response/nusoap/NusoapResponse.class.php';
     require_once $this->mFilePath;
     eval('$this->mrSoapResponse =& new ' . $this->mClassName . '();');
 }
 public function __construct($message)
 {
     $this->card = new Card();
     parent::__construct($message);
     if ($this->isSuccess()) {
         $this->card->setCardToken($this->getResponse()->token);
         $this->card->setCardHolder($this->getResponse()->holder);
         $this->card->setCardExpMonth($this->getResponse()->exp_month);
         $this->card->setCardExpYear($this->getResponse()->exp_year);
         $this->card->setBrand($this->getResponse()->brand);
         $this->card->setFirst_1($this->getResponse()->first_1);
         $this->card->setLast_4($this->getResponse()->last_4);
     }
 }
 /**
  * Creates the response with the given type
  *
  * @author KnowledgeTree Team
  * @access public
  * @param string $type xml|json
  */
 public function __construct($type)
 {
     parent::__construct($type);
     $this->class = 'KTAPI';
 }