pfpro_process

pfpro_process -- Process a transaction with Payflow Pro

Description

array pfpro_process ( array parameters [, string address [, int port [, int timeout [, string proxy address [, int proxy port [, string proxy logon [, string proxy password]]]]]]])

הערה :

דוגמה 1 .

 
?php

 
pfpro_init(

 
)

 
;

 
$transaction

 
=

 
array(USER

 
=

 
'mylogin'

 
,

 
PWD

 
=

 
'mypassword'

 
,

 
TRXTYPE

 
=

 
'S'

 
,

 
TENDER

 
=

 
'C'

 
,

 
AMT

 
=

 
1.50

 
,

 
ACCT

 
=

 
'4111111111111111'

 
,

 
EXPDATE

 
=

 
'0904

 
'

 
)

 
;

 
$response

 
=

 
pfpro_process($transaction)

 
;

 
if

 
(!$response

 
)

 
{

 
die("Couldn't

 
establish

 
link

 
to

 
Verisign.\n")

 
;

 
}

 
echo

 
"Verisign

 
response

 
code

 
was

 
".$response[RESULT]

 
;

 
echo

 
"

 
,

 
which

 
means

 
:

 
".$response[RESPMSG]

 
."\n"

 
;

 
echo

 
"\nThe

 
transaction

 
request

 
:

 
"

 
;

 
print_r($transaction)

 
;

 
echo

 
"\nThe

 
response

 
:

 
"

 
;

 
print_r($response)

 
;

 
pfpro_cleanup()

 
;

 

?