Example #1
0
 protected function parseResponseMap($response)
 {
     parent::parseResponseMap($response);
     // Opzionale
     $this->paymentID = IgfsUtils::getValue($response, "paymentID");
     // Opzionale
     $this->redirectURL = IgfsUtils::getValue($response, "redirectURL");
 }
Example #2
0
 protected function parseResponseMap($response)
 {
     parent::parseResponseMap($response);
     // Opzionale
     $this->tranID = IgfsUtils::getValue($response, "tranID");
     // Opzionale
     $this->authCode = IgfsUtils::getValue($response, "authCode");
     // Opzionale
     $this->enrStatus = IgfsUtils::getValue($response, "enrStatus");
     // Opzionale
     $this->authStatus = IgfsUtils::getValue($response, "authStatus");
     // Opzionale
     $this->brand = IgfsUtils::getValue($response, "brand");
     // Opzionale
     $this->maskedPan = IgfsUtils::getValue($response, "maskedPan");
     // Opzionale
     $this->addInfo1 = IgfsUtils::getValue($response, "addInfo1");
     // Opzionale
     $this->addInfo2 = IgfsUtils::getValue($response, "addInfo2");
     // Opzionale
     $this->addInfo3 = IgfsUtils::getValue($response, "addInfo3");
     // Opzionale
     $this->addInfo4 = IgfsUtils::getValue($response, "addInfo4");
     // Opzionale
     $this->addInfo5 = IgfsUtils::getValue($response, "addInfo5");
     // Opzionale
     $this->payInstrToken = IgfsUtils::getValue($response, "payInstrToken");
     // Opzionale
     $this->expireMonth = IgfsUtils::getValue($response, "expireMonth");
     // Opzionale
     $this->expireYear = IgfsUtils::getValue($response, "expireYear");
     // Opzionale
     $this->level3Info = Level3Info::fromXml(IgfsUtils::getValue($response, "level3Info"));
     // Opzionale
     $this->additionalFee = IgfsUtils::getValue($response, "additionalFee");
     // Opzionale
     $this->status = IgfsUtils::getValue($response, "status");
     // Opzionale
     $this->accountName = IgfsUtils::getValue($response, "accountName");
 }
Example #3
0
 protected function parseResponseMap($response)
 {
     parent::parseResponseMap($response);
     $xml = $response[BaseIgfsCg::$RESPONSE];
     $xml = str_replace("<soap:", "<", $xml);
     $xml = str_replace("</soap:", "</", $xml);
     $dom = new \SimpleXMLElement($xml, LIBXML_NOERROR, false);
     if (count($dom) == 0) {
         return;
     }
     $tmp = str_replace("<Body>", "", $dom->Body->asXML());
     $tmp = str_replace("</Body>", "", $tmp);
     $dom = new \SimpleXMLElement($tmp, LIBXML_NOERROR, false);
     if (count($dom) == 0) {
         return;
     }
     $xml_response = IgfsUtils::parseResponseFields($dom->response);
     if (isset($xml_response["terminal"])) {
         $terminal = array();
         foreach ($dom->response->children() as $item) {
             if ($item->getName() == "terminal") {
                 $terminal[] = TerminalInfo::fromXml($item->asXML());
             }
         }
         $this->terminal = $terminal;
     }
 }