Redirect URL

From PlatiOnline.EU
Jump to: navigation, search

Redirect URL

Once the XML_Message is successfully parsed the Plati Online system will return an XML with the redirect URL. Validate returned XML with schema: https://secure.plationline.eu/xml_validation/auth.url.response.v5.xsd

<po_auth_url_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_url_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;