RE: [PHP-INSTALL] payflow pro configure
| From: | Sarah | Date: | Tue, 23 Nov 2004 11:21:45 +0000 |
| Subject: | RE: [PHP-INSTALL] payflow pro configure | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-14789@lists.php.net to get a copy of this message | ||
First off I need to say I hate configuring and
building php when I've only been hired to build php
code but that's my fault. Anyways I finally got the
evil evil payflow pro stuff integrated and well I
abandoned trying to reconfigure php to do it. Also
before I forgot thank you to Chuck and Chris for all
their help. Here's the code I used to reroute around
the pfpro functions:
# Location of the pfpro binary.
$pfpro = "/www2/bin/pfpro";
# Location of the certs
putenv("PFPRO_CERT_PATH=/www2/Verisign.certs");
# The args to call the binary with
$args =
"USER=$vsInfo[1]&VENDOR=$vsInfo[1]&PARTNER=verisign&"
.
"PWD=$vsInfo[2]&" .
"TRXTYPE=S&TENDER=C&" .
"ACCT=$UserInfo[ccnum]&EXPDATE=$ccexpire&" .
"AMT=$UserInfo[amount]&COMMENT1=$comment1";
# Put together the command string
$command = "$pfpro $vsInfo[3] 443 \"$args\" 10";
$result =
$command;