note 15867 added to ref.pfpro
| From: | jason at thinkingman dot org | Date: | Fri, 05 Oct 2001 22:19:22 +0000 |
| Subject: | note 15867 added to ref.pfpro | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18620@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
--
http://www.php.net/manual/en/ref.pfpro.php
http://master.php.net/manage/user-notes.php?action=edit+15867
http://master.php.net/manage/user-notes.php?action=delete+15867
http://master.php.net/manage/user-notes.php?action=reject+15867