note 15867 deleted from ref.pfpro by jimw

From: Date: Tue, 18 Dec 2001 21:01:37 +0000
Subject: note 15867 deleted from ref.pfpro by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23234@lists.php.net to get a copy of this message
Here is a workable solution for Win32 Users / Developers who want to use PayFlowPro. As of this posting, the Win32 version of PHP (up to, at least 4.0.6) doesn't seem to come with a php_pfpro.dll extension. <? /* PayFlowPro Solution for Win32 Users using PHP 4.0.6 (and lower.) ---------------------------------------------------------------------- As of this publishing -- the Win32 version of PHP (up to 4.0.6) doesn't seem to support Verisign's PayflowPro Service / SDK through an extension (such as; PHP_PFPRO.DLL) -- I hope to see this extension released *soon*. In the meantime, here is a workable solution for Win32 Users / Developers. by Jason Caldwell (jason@thinkingman.org) (10-05-2001) */ /* Make sure the environment variable PFPRO_CERT_PATH = {the Cert Path} is set. (for example: PFPRO_CERT_PATH = C:\Verisign\payflowpro\win32\certs) */ $result = exec('C:\Verisign\payflowpro\win32\bin\pfpro test-payflow.verisign.com 443 "TRXTYPE=S&TENDER=C&PWD=yourPassword&USER=yourUsername&VENDOR=yourUsername&PARTNER=yourPartnerName&ACCT=4222222222222&EXPDATE=1209&AMT=14.42&COMMENT1=123456789&COMMENT2=Good Customer&INVNUM=1234567890&STREET=5199 JOHNSON&ZIP=94588" 5'); $valArray = explode('&', $result); foreach($valArray as $val) { $valArray2 = explode('=', $val); $pfpro[$valArray2[0]] = $valArray2[1]; } /* To look at the array structure */ print_r($pfpro); ?> Jason

« previous php.notes (#23234) next »