protected function _loadFromXml(\DOMElement $elem) { parent::_parseFromXml($elem); //card request specific data $elems = $elem->getElementsByTagName('invoice'); if ($elems->length != 1) { throw new \Exception('Card::loadFromXml failed; invoice element is missing', self::ERROR_LOAD_FROM_XML_ORDER_INVOICE_ELEM_MISSING); } $this->invoice = new Invoice($elems->item(0)); return $this; }
protected function getResponse() { $response = RequestAbstract::factoryFromEncrypted(Input::get('env_key'), Input::get('data'), $this->getPrivateKey()); return $response; }