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'; }