Click to See Complete Forum and Search --> : PayFlow Pro on NT/IIS4


Anon
10-03-2001, 05:00 PM
Has anyone had any success using PayFlow Pro from Verisign to do credit card transactions using IIS4? I have tried 3 avenues so far, and all of the have me dead-ended.

1) Tried using the built-in pfpro_ functions, but I don't know where to find the php_pfpro.dll file.

2) Tried using the cgi version of pfpro.exe and calling it with exec(), passthru(), etc... the functions are working on my server fine (I can do a passthru(cmd /c dir c:\\ > test1.txt) and get correct output, but trying the same thing with pfpro.exe gives me nothing. (i.e. passthru(cmd /c ../pfpro.exe $yadayadayada)

3) Tried using the COM objects supplied with PFPro, but again, I get nothing. I assume that I am calling it correctly because there are no errors, just a blank page. Of course, one of my issues here is that I don't understand the -> function. Code Example:

$instance = new COM("PFProCOMControl...");
$instance -> CreateContext("test-payflow.verisign.com", yadayada...);

How do I retrieve output from this? I haven't seen any documentation on what -> does, am I looking in the wrong place?

Anybody have some advise on this?

TIA for any help.
Dwight

Anon
10-03-2001, 07:34 PM
It never fails.... I post a message, and then I get it to work! FYI - using the COM objects seems to work pretty cleanly. I would still like to see a reply from the -> question. What does that do? Anyway, here's how I got it working for future reference:

<?

$instance = new COM("PFProCOMControl.PFProCOMControl.1") or die ("Couldn't Load It!");

$create = $instance -> CreateContext("test-payflow.verisign.com", 443, 30, "", 0, "", "") or die ("Couldn't Create Context");

$parmlist = "TRXTYPE=S&TENDER=C&ZIP=12345&COMMENT1=ASP/COM Test Transaction&ACCT=5105105105105100&PWD=22095xx&USER=ifixpcs&VENDOR=ifixpcs&PARTNER=verisign&EXPDATE=1209&AMT=1.10";

$length = strlen($parmlist);

$submit = $instance -> SubmitTransaction($create,$parmlist,$length) or die ("Couldn't Submit!");

echo "invoke = $submit<BR>";
$instance -> DestroyContext();

?>

Anon
10-05-2001, 02:14 PM
I agree with you. On Win32 platform, it is just so smooth and easy to use the COM.
The "->" is used to call the method or to access the properties of an object. Very similar to VB such as myObj.someFunction(). =)