Difference between revisions of "Redirect URL"
PlatiOnline (talk | contribs) |
PlatiOnline (talk | contribs) m |
||
Line 1: | Line 1: | ||
== Redirect URL == | == Redirect URL == | ||
− | Once the '''XML_Message''' is successfully parsed the Plati Online system will return an XML with the 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''' |
+ | |||
<source lang="xml"> | <source lang="xml"> | ||
− | < | + | <po_auth_url_response> |
<po_error_code> | <po_error_code> | ||
<![CDATA[ | <![CDATA[ | ||
Line 16: | Line 17: | ||
<![CDATA[https://secure.plationline.eu/?parameter=code]]> | <![CDATA[https://secure.plationline.eu/?parameter=code]]> | ||
</po_redirect_url> | </po_redirect_url> | ||
− | </ | + | </po_auth_url_response> |
</source> | </source> | ||
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'''. |
Latest revision as of 12:23, 2 April 2014
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:
- 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;