From 078bcec0997ad0e07b720c43cc9e6d0e046a75ab Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Thu, 27 Feb 2003 17:43:39 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'PHP_5'. --- ext/mcve/mcve_test2.php | 68 ------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 ext/mcve/mcve_test2.php (limited to 'ext/mcve/mcve_test2.php') diff --git a/ext/mcve/mcve_test2.php b/ext/mcve/mcve_test2.php deleted file mode 100644 index 4cb251b538..0000000000 --- a/ext/mcve/mcve_test2.php +++ /dev/null @@ -1,68 +0,0 @@ -\n"; - -if ($connect_type == "IP") { - MCVE_SetIP($conn, "localhost", 8333) or - die("MCVE_SetIP() failed"); - print "MCVE_SetIP() successful
\n"; -} else { - MCVE_SetDropFile($conn, "/var/mcve/trans") or - die("MCVE_SetDropFile() failed"); - print "MCVE_SetDropFile() successful
\n"; -} - -MCVE_Connect($conn) or - die("MCVE_Connect() failed"); -print "MCVE_Connect() successful
\n"; - -# send a request -$ident = MCVE_Sale($conn, "test", "test", NULL, "5454545454545454", - "1205", 11.00, NULL, NULL, NULL, NULL, "me", NULL, 54321); -if ($ident == -1) - die("MCVE_Sale() failed"); -else - print "Identifier: $ident
\n"; - -$ident = MCVE_Sale($conn, "test", "test", NULL, "5454545454545454", - "1205", 12.00, NULL, NULL, NULL, NULL, "me", NULL, 54321); -if ($ident == -1) - die("MCVE_Sale() failed"); -else - print "Identifier: $ident
\n"; - -$pending = 0; -$complete = -1; -while ($pending != $complete) { - sleep(2); - - MCVE_Monitor($conn); - - $pending = MCVE_TransInQueue($conn); - print "Transactions pending: $pending
\n"; - - $complete = MCVE_CompleteAuthorizations($conn, &$list); - print "Authorizations complete: $complete
\n"; - - flush(); -} - -for ($i = 0; $i < $complete; $i++) { - $status = MCVE_CheckStatus($conn, $i); - print "Transaction #" . $list[$i] . " complete: $status
\n"; -} - -MCVE_DestroyConn($conn); -print "MCVE_DestroyConn() completed
\n"; - -#phpinfo(); - -?> -- cgit v1.2.1