Пример #1
0
 public function verify($options = array())
 {
     try {
         $xml = VelocityXmlCreator::verifyXML($options);
         // got Verify xml object.
         $xml->formatOutput = TRUE;
         $body = $xml->saveXML();
         //echo '<xmp>'.$body.'</xmp>'; die;
         list($error, $response) = $this->connection->post($this->path(self::$workflowid, self::$Txn_method[0], self::$Txn_method[0]), array('sessiontoken' => $this->sessionToken, 'xml' => $body, 'method' => self::$Txn_method[0]));
         return $this->handleResponse($error, $response);
         //return $response;
     } catch (Exception $e) {
         throw new Exception($e->getMessage());
     }
 }