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`; 

Reply via email to