PHP Classes

File: testid.php

Recommend this page to a friend!
  Classes of Joshua Preston   Verify ID   testid.php   Download  
File: testid.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: Verify ID
Verify the identity of people
Author: By
Last change:
Date: 19 years ago
Size: 2,567 bytes
 

Contents

Class file image Download
<?php
/*
 * verifyID
 * Copyright (C) 2005 Joshua Preston
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 * testid.php
 *
 * If this class doesn't work, be sure to check your php.ini file and
 * set allow_url_fopen to On.
 *
 *
 * allow_url_fopen = On
 *
Taken from www.verifymyidentification.com:

VerifyME is an international fraud prevention, age and identity verification service
that integrates a government-issued ID database check, algorithms and web-based signature
capture. VerifyMe performs both international identity verification and domestic identity
verification with age verification in most countries. The service provides merchants and
government agencies with Patriot Act compliance and compliance with age verification laws
and guidelines.

VerifyME eliminates costs associated with manual intervention, simplifies, automates and
streamlines the verification process. Verification information is returned real-time
through a cost-effective, web-based solution.

*/
require_once("verifyID.php");

$vId = new verifyID();

$vId->setData("sid","SID1234");
$vId->setData("first","Firstname");
$vId->setData("last","Lastname");
$vId->setData("gender","M");
$vId->setData("address","Address");
$vId->setData("state","OH");
$vId->setData("country","US");
$vId->setData("zip","43123");
$vId->setData("ssn","123121234");
$vId->setData("dob","01/01/1970");

$vId->submitRequest();

echo
"transaction id is: " . $vId->getTransactionID() . "<br>\n";
echo
"match code is: " . $vId->getMatchCode() . "<br>\n";
echo
"return code " . $vId->getErrorCode() . "(" . $vId->getErrorCodeText() . ")<br>\n";

if (
$vId->isVerified() == true ) {
    echo
"<h1>You have been verified</h1>\n";
} else {
    echo
"<h1>Verification unsuccessful</h1>\n";
}
?>
<pre>
<?php
echo $vId->getDataXML();
echo
$vId->getResultXML();
?>
</pre>