Howdy, I’m setting up a new machine to test with, and I decided to
upgrade to Apache 2.0 and Redhat 9, using the rpms installed with Redhat 9 and
upgraded through RHN. After some serious work, I got Ming to install as a module and PayFlow Pro to install on this configuration. Here’s the odd problem. I set up a script to test PayFlowPro,
and when run command-line (# php test_payment.php)
it works perfectly. When run online, it
bombs on pfpro_process(). Here’s the
code: <?php print "<h2>Running PF
Pro 1</h2>\n"; $data_stream = array(amt
=> "20.00", cardno =>
"1234567891054", exp_date =>
"0204"); pay_flow_pro($data_stream); function pay_flow_pro(&$data_stream){ dl('pfpro.so'); print
"<h2>Running PF Pro 2</h2>\n"; $transaction = array(USER =>
'####', PWD =>
'####', PARTNER =>
'###', TRXTYPE =>
'S', TENDER =>
'C', AMT =>
$data_stream["amt"], ACCT =>
$data_stream["cardno"], EXPDATE =>
$data_stream["exp_date"] ); print
"<h2>Running PF Pro 2.5</h2>\n"; $response = pfpro_process($transaction,
"test-payflow.verisign.com"); print
"<h2>Running PF Pro 3</h2>\n"; print
"<h2>Running PF Pro 4</h2>\n"; $resp_keys
= array_keys($response); for($rk=0; $rk<count($resp_keys); $rk++){ $data_stream[$resp_keys[$rk]]=$response[$resp_keys[$rk]]; print $resp_keys[$rk].": ".$response[$resp_keys[$rk]]."\n"; } print
"<h2>Running PF Pro 5</h2>\n"; } ?> As you can see, I put markers in the code to show me how far it
got. Command-line finishes – and
gives a “declined” response from Verisign. Online it bombs out after “Running PF
Pro 2.5”. Any
ideas? Do I have some permissions wrong? Thanks in advance! - |