cvs: php4 /ext/pfpro test.php /tests testpfpro.php

From: Date: Sat, 15 Jul 2000 03:07:49 +0000
Subject: cvs: php4 /ext/pfpro test.php /tests testpfpro.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-765@lists.php.net to get a copy of this message
david Fri Jul 14 20:07:49 2000 EDT Added files: /php4/tests testpfpro.php Modified files: /php4/ext/pfpro test.php Log: test file for pfpro Index: php4/ext/pfpro/test.php diff -u php4/ext/pfpro/test.php:1.1 php4/ext/pfpro/test.php:1.2 --- php4/ext/pfpro/test.php:1.1 Fri Jul 14 18:13:39 2000 +++ php4/ext/pfpro/test.php Fri Jul 14 20:07:48 2000 @@ -38,6 +38,6 @@ echo "Dump of the response "; print_r($response); -pfpro_cleanup() +pfpro_cleanup(); ?> Index: php4/tests/testpfpro.php +++ php4/tests/testpfpro.php <? if (!extension_loaded('pfpro')) { die("pfpro module is not compiled in PHP\n"); } echo "<pre>\n\n"; echo "Payflow Pro library is version ".pfpro_version()."\n"; pfpro_init(); $transaction = array(USER => 'mylogin', PWD => 'mypassword', TRXTYPE => 'S', TENDER => 'C', AMT => 1.50, ACCT => '4111111111111111', EXPDATE => '0900' ); $response = pfpro_process($transaction); if (!$response) { die("Couldn't establish link to signio software.\n"); } echo "Signio response code was ".$response[RESULT]; echo ", which means: ".$response[RESPMSG]."\n"; echo "\nDump of the transaction request "; print_r($transaction); echo "\nDump of the response "; print_r($response); pfpro_cleanup(); ?>

« previous php.cvs (#765) next »