SMS request response

From PlatiOnline.EU
Jump to: navigation, search

Send SMS Request Response

Once the SMS Request XML_Message is successfully parsed the Plati Online system will process it. Validate returned XML with schema:

			1 - an error occurred parsing the '''SMS Request XML_Message''' and Plati Online will not process the request;
			0 - no error => '''Void Request XML_Message''' is valid and PlatiOnline will attempt to process the request.
		<![CDATA[the error message]]>
			11 - SMS Request was saved and will be sent as requeste
			10 - Error => Plati Online will print the error in '''po_error_reason''' tag
		<![CDATA[PO sms id]]>

To continue, here is the 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 update the order status according the x_response_code and x_sms_id tags.