<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >pfpro_process_raw</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="Verisign Payflow Pro Functions" HREF="ref.pfpro.html"><LINK REL="PREVIOUS" TITLE="pfpro_init" HREF="function.pfpro-init.html"><LINK REL="NEXT" TITLE="pfpro_process" HREF="function.pfpro-process.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.pfpro-init.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.pfpro-process.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.pfpro-process-raw" ></A >pfpro_process_raw</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN230813" ></A ><P > (PHP 4 >= 4.0.2, PHP 5)</P >pfpro_process_raw -- Process a raw transaction with Payflow Pro</DIV ><DIV CLASS="refsect1" ><A NAME="AEN230816" ></A ><H2 >Descrição</H2 >string <B CLASS="methodname" >pfpro_process_raw</B > ( string parameters [, string address [, int port [, int timeout [, string proxy_address [, int proxy_port [, string proxy_logon [, string proxy_password]]]]]]] )<BR ></BR ><P > <B CLASS="function" >pfpro_process_raw()</B > processes a raw transaction string with Payflow Pro. You should really use <A HREF="function.pfpro-process.html" ><B CLASS="function" >pfpro_process()</B ></A > instead, as the encoding rules of these transactions are non-standard. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Nota: </B > 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 <A HREF="function.pfpro-process.html" ><B CLASS="function" >pfpro_process()</B ></A > instead. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN230851" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" >parameters</CODE ></DT ><DD ><P > A string containing the raw transaction request. </P ></DD ><DT ><CODE CLASS="parameter" >address</CODE ></DT ><DD ><P > Specifies the host to connect to. By default this is <TT CLASS="literal" >test.signio.com</TT >, that you will certainly want to change this to <TT CLASS="literal" >connect.signio.com</TT > in order to process live transactions. </P ></DD ><DT ><CODE CLASS="parameter" >port</CODE ></DT ><DD ><P > Specifies the port to connect on. It defaults to 443, the standard SSL port number. </P ></DD ><DT ><CODE CLASS="parameter" >timeout</CODE ></DT ><DD ><P > Specifies the timeout to be used, in seconds. This defaults to 30 seconds. Note that this timeout appears to only begin once a link to the processor has been established and so your script could potentially continue for a very long time in case of DNS or network problems. </P ></DD ><DT ><CODE CLASS="parameter" >proxy_address</CODE ></DT ><DD ><P > If required, specifies the hostname of your SSL proxy. </P ></DD ><DT ><CODE CLASS="parameter" >proxy_port</CODE ></DT ><DD ><P > If required, specifies the port of your SSL proxy. </P ></DD ><DT ><CODE CLASS="parameter" >proxy_logon</CODE ></DT ><DD ><P > If required, specifies the logon identity to use on the SSL proxy. </P ></DD ><DT ><CODE CLASS="parameter" >proxy_password</CODE ></DT ><DD ><P > If required, specifies the password to use on the SSL proxy. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN230897" ></A ><H2 >Valores de retornado</H2 ><P > Returns a string containing the raw response. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN230900" ></A ><H2 >Exemplos</H2 ><P > <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN230903" ></A ><P ><B >Exemplo 1. Payflow Pro raw example</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br /><br />pfpro_init</font><font color="#007700">();<br /><br /></font><font color="#0000BB">$response </font><font color="#007700">= </font><font color="#0000BB">pfpro_process_raw</font><font color="#007700">(<br /></font><font color="#DD0000">"USER=mylogin&PWD[5]=m&ndy&PARTNER=VeriSign&TRXTYPE=S" </font><font color="#007700">.<br /></font><font color="#DD0000">"&TENDER=C&AMT=1.50&ACCT=4111111111111111&EXPDATE=0904"</font><font color="#007700">);<br /><br />if (!</font><font color="#0000BB">$response</font><font color="#007700">) {<br /> die(</font><font color="#DD0000">"Couldn't establish link to Verisign.\n"</font><font color="#007700">);<br />}<br /><br />echo </font><font color="#DD0000">"Verisign raw response was " </font><font color="#007700">. </font><font color="#0000BB">$response</font><font color="#007700">;<br /><br /></font><font color="#0000BB">pfpro_cleanup</font><font color="#007700">();<br /><br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN230906" ></A ><H2 >Veja também</H2 ><P > <P ></P ><TABLE BORDER="0" ><TBODY ><TR ><TD ><A HREF="function.pfpro-process.html" ><B CLASS="function" >pfpro_process()</B ></A ></TD ></TR ></TBODY ></TABLE ><P ></P > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.pfpro-init.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.pfpro-process.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >pfpro_init</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.pfpro.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >pfpro_process</TD ></TR ></TABLE ></DIV ></BODY ></HTML >