Difference between revisions of "Redirect URL"

From PlatiOnline.EU
Jump to: navigation, search
(Redirect URL)
Line 20: Line 20:
 
To continue transaction merchants have to send to the browser the '''HTTP Redirect_URL'''.
 
To continue transaction merchants have to send to the browser the '''HTTP Redirect_URL'''.
 
Plati Online system will load the card page.
 
Plati Online system will load the card page.
 +
 +
Pseudo-code:
 +
#Load the returned XML;
 +
#if '''po_error_code''' = 1 echo the error message from '''po_error_reason''' tag;
 +
#if '''po_error_code''' = 0 echo HTTP Redirect '''po_redirect_url''' tag;

Revision as of 13:38, 17 March 2014

Redirect URL

Once the XML_Message is successfully parsed the Plati Online system will return an XML with the redirect URL.

<po_auth_response>
	<po_error_code>
		<![CDATA[
			1 - an error occured parsing the '''XML_Message''' and Plati Online will not generate the '''Redirect URL'''.
			0 - no error => Plati Online will generate the '''Redirect URL'''
		]]>
	</po_error_code>
	<po_error_reason>
		<![CDATA[the error message]]>
	</po_error_reason>
	<po_redirect_url>
		<![CDATA[https://secure.plationline.eu/?parameter=code]]>
	</po_redirect_url>
</po_auth_response>

To continue transaction merchants have to send to the browser the HTTP Redirect_URL. Plati Online system will load the card page.

Pseudo-code:

  1. Load the returned XML;
  2. if po_error_code = 1 echo the error message from po_error_reason tag;
  3. if po_error_code = 0 echo HTTP Redirect po_redirect_url tag;