Payflow, story continued
| From: | Henning Kilset Pedersen | Date: | Wed, 25 Apr 2001 20:29:16 +0000 |
| Subject: | Payflow, story continued | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50354@lists.php.net to get a copy of this message | ||
Dan and others, following this thread;
Here is the result of my pfpro_version() call :
Yup, that's right. Blank, stare, squiddly-squat, etc. Which is what I
intended.
However, here is the result of the test script for the function provided in
the PHP4.0.4 manual, script is here:
<?php
pfpro_init();
$transaction = array(USER => 'mylogin',
PWD => 'mypassword',
TRXTYPE => 'S',
TENDER => 'C',
AMT => 1.50,
ACCT => '4111111111111111',
EXPDATE => '0904'
);
$response = pfpro_process($transaction);
if (!$response) {
die("Couldn't establish link to Verisign.\n");
}
echo "Verisign response code was ".$response[RESULT];
echo ", which means: ".$response[RESPMSG]."\n";
echo "\nThe transaction request: ";
print_r($transaction);
echo "\nThe response: ";
print_r($response);
pfpro_cleanup();
?>
and result is here:
Verisign response code was -31, which means: The certificate chain did not
validate, no local certificate found The transaction request: Array ( [USER]
=> mylogin [PWD] => mypassword [TRXTYPE] => S [TENDER] => C [AMT] => 1.5
[ACCT] => 4111111111111111 [EXPDATE] => 0904 ) The response: Array
[RESULT] => -31 [RESPMSG] => The certificate chain did not validate, no
local certificate found )
Hmm. Certificate not found. I think that is in the directory that I
specified for --with-pfpro=....., under the ./certs subdirectory there. I
just downloaded the test version, tho. I haven't found any information from
Verisign on how to update/change that certificate if needed, or any
information from PHP's manuals on how to choose where the cert is located.
Should it be in some PHP includable directory, for example?
Regards,
Henning