pfpro_process_raw

(csak PHP4 CVS)

pfpro_process_raw -- Process a raw transaction with Payflow Pro

Description

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

Returns: A string containing the response.

pfpro_process_raw() processes a raw transaction string with Payflow Pro. You should really use pfpro_process() instead, as the encoding rules of these transactions are non-standard.

The first parameter in this case is a string containing the raw transaction request. All other parameters are the same as with pfpro_process(). The return value is a string containing the raw response.

Megjegyzés: Be sure to read the Payflow Pro Developers Guide for full details of the required parameters and encoding rules. You would be well advised to use pfpro_process() instead.

Példa 1. Payflow Pro raw example

  1 
  2 <?php
  3 
  4 pfpro_init();
  5 
  6 $response = pfpro_process("USER=mylogin&PWD[5]=m&ndy&TRXTYPE=S&TENDER=C&AMT=1.50&ACCT=4111111111111111&EXPDATE=0904");
  7 
  8 if (!$response) {
  9   die("Couldn't establish link to Verisign.\n");
 10 }
 11 
 12 echo "Verisign raw response was ".$response;
 13 
 14 pfpro_cleanup();
 15 
 16 ?>
 17