"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"
The fulfillment request XML message is formatted as follows:
DataCash password DataCash client
Reference Number Authentication code fulfill
Fulfillment Response The response to a fulfillment request includes the following information: ??? The status code number indicates what happened; the code will be 1 if the transaction was successful or another of several other codes if something else happens. Again, for a complete list of codes, see https://testserver.datacash.com/software/returncodes.shtml. ??? The reason for the status is, basically, a string explaining the status in English. For a status of 1, this string is FULFILLED OK. ??? Two copies of the reference code are provided for use by DataCash. ??? The time that the transaction was processed is supplied. ??? And the mode of the transaction, which is TEST when using the test account, is also provided. The XML message for the fulfillment response is formatted as follows:
Status code Reason Reference Code Reference Code
TEST
CHAPTER 20 ?– PROCESSING CREDIT CARD TRANSACTIONS 629 Exchanging XML Data with DataCash Because the XML data we need to send to DataCash has a simple and standard structure, we??™ll build it manually in a string, without using the XML support offered by PHP 5.