Difference between revisions of "Settlement request response"
PlatiOnline (talk | contribs) (Created page with "== Settle Request Response == Once the '''Settle Request XML_Message''' is successfully parsed the Plati Online system will process it. Validate returned XML with schema: '''...") |
PlatiOnline (talk | contribs) (→Settle Request Response) |
||
Line 8: | Line 8: | ||
<po_error_code> | <po_error_code> | ||
<![CDATA[ | <![CDATA[ | ||
− | 1 - an error | + | 1 - an error occurred parsing the '''Settle Request XML_Message''' and Plati Online will not process the request; |
− | 0 - no error => | + | 0 - no error => '''Settle Request XML_Message''' is valid and PlatiOnline will attempt to process the request. |
]]> | ]]> | ||
</po_error_code> | </po_error_code> |
Latest revision as of 18:07, 2 April 2014
Settle Request Response
Once the Settle Request XML_Message is successfully parsed the Plati Online system will process it. Validate returned XML with schema: https://secure.plationline.eu/xml_validation/settle.response.v5.xsd
<po_settle_response>
<po_error_code>
<![CDATA[
1 - an error occurred parsing the '''Settle Request XML_Message''' and Plati Online will not process the request;
0 - no error => '''Settle Request XML_Message''' is valid and PlatiOnline will attempt to process the request.
]]>
</po_error_code>
<po_error_reason>
<![CDATA[the error message]]>
</po_error_reason>
<x_response_code>
<![CDATA[
3 - Transactions status in now '''Pending Settle'''
10 - Error => Plati Online will print the error in '''po_error_reason''' tag
]]>
</x_response_code>
<x_trans_id>
<![CDATA[PO transaction id]]>
</x_trans_id>
</po_settle_response>
To continue here is the 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 update the order status according the x_response_code and x_trans_id tags.