コード例 #1
0
 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);
     }
 }
コード例 #2
0
 /**
  * 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';
 }