To test, Append ?id=xxxx to the URL to change the project ID; where xxxx is your product id"; if(strpos('[SUCCESS]', $sResponse) === false){ //The order went through ok echo "Success: The following was returned from the server:
"; } else { //the order did not go through. //THIS MAY BE A SIGN OF A DUPLICATE ORDER WHICH IS A NORMAL CASE THAT WE CONSIDER A FAILURE echo "Failure: The following was returned from the server:
"; } echo "
"; echo $sResponse;