mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
- Cannot see any good reason why the test script in the dir of
the extension, though it is in tests as well
This commit is contained in:
parent
8f96ea6b20
commit
eb3bc5aba6
@ -1,29 +0,0 @@
|
||||
X-Powered-By: PHP/4.0.2-dev
|
||||
Content-type: text/html
|
||||
|
||||
<pre>
|
||||
|
||||
Payflow Pro library is version L211
|
||||
Payflow Pro init returned 1
|
||||
Signio response code was 0, which means: Approved
|
||||
|
||||
Dump of the transaction request Array
|
||||
(
|
||||
[USER] => mylogin
|
||||
[PWD] => mypassword
|
||||
[TRXTYPE] => S
|
||||
[TENDER] => C
|
||||
[AMT] => 1.5
|
||||
[ACCT] => 4111111111111111
|
||||
[EXPDATE] => 0900
|
||||
)
|
||||
|
||||
Dump of the response Array
|
||||
(
|
||||
[RESULT] => 0
|
||||
[PNREF] => P40111660030
|
||||
[RESPMSG] => Approved
|
||||
[AUTHCODE] => 251PNI
|
||||
[AVSADDR] => X
|
||||
[AVSZIP] => X
|
||||
)
|
@ -1,43 +0,0 @@
|
||||
<?
|
||||
|
||||
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";
|
||||
|
||||
echo "Payflow Pro init returned ".pfpro_init()."\n";
|
||||
|
||||
$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 "\n";
|
||||
|
||||
echo "Dump of the transaction request ";
|
||||
print_r($transaction);
|
||||
|
||||
echo "\n";
|
||||
|
||||
echo "Dump of the response ";
|
||||
print_r($response);
|
||||
|
||||
pfpro_cleanup();
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user