/** * Set the current payment card */ public function setCard(ParadoxLabs_TokenBase_Model_Card $card) { $this->_log(sprintf('setCard(%s)', $card->getId())); $this->_card = $card; $this->gateway()->setCard($card); $this->getInfoInstance()->setTokenbaseId($card->getId())->setCcType($card->getAdditional('cc_type'))->setCcLast4($card->getAdditional('cc_last4'))->setCcExpMonth($card->getAdditional('cc_exp_month'))->setCcExpYear($card->getAdditional('cc_exp_year')); return $this; }