public static function setVerifySslCerts($verify) { self::$verifySslCerts = $verify; }
<?php include_once './lib/Prove.php'; Prove::setApiKey('test_iKpe4EvKGzh3C6BM2ahJ71JxAXA'); Prove::setApiKeyPassword('nelnet'); //if you want to test retrieve() or verifyPin(), input an id string here: $id = "some id string here"; //testCreate(); //testAll(); //testRetrieve($id); //testVerifyPin($id); //not working yet function testVerifyPin($id) { echo "Testing verifyPin<br />"; //pin for testApiKey is always 1337 $pin = 1337; $verify = Prove_Verification::verifyPin(array('id' => $id, 'pin' => $pin)); echo $verify; echo "<br />"; } function testRetrieve($id) { echo "Testing retrieve<br />"; $verify = Prove_verification::retrieve($id); echo $verify; echo "<br />"; } function testCreate() { //post and display a new entry echo "Testing create<br />";
<?php /** * Created by PhpStorm. * User: lipeng_wei * Date: 15-12-22 * Time: 上午6:04 * * 验证页 * */ require_once dirname(__FILE__) . '/Require.php'; require_once MODULE_PATH . 'Purpose.class.php'; class Prove extends Purpose { //展示页面 public static function show() { parent::setAim('prove'); parent::show(); } } Prove::show();