This I suppose is both a PHP and LinkPoint problem. Or rather it's one or the other I just don't know which yet. I am trying to develop an application to work with LinkPoint's API. I am not quite familiar with it so I am testing one of the PHP files offered in the module samples in the LinkPoint control panel (under the downloads link). I believe it is the PAY_XML.php file... Anyway, I have applied for a testing account which I was granted, and have downloaded the testing PEM file (by entering "111111111" for the tax id...). I then modified the PAY_XML file so that the store number was correct and the location to the PEM was correct. I even made sure that the host defined was "staging.linkpt.net". Even after doing what I believed was correct, the file still wouldn't work. I called LinkPoint, and was directed to the level 3 techs who said that I should check the permissions on both my PEM file and the directory that held the PAY_XML file, as well as all the conents in that directory. I did this and still nothing. They then told me to check to make sure that port 1129 was open on my host. I called my host to verify, and they said that it wasn't open before but that now it is... they also sent me the Unix logs showing a successful telnet to staging.linkpt.net on port 1129. I am quite lost as to what to do, and was wondering if anyone else has experienced similar problems before? And if so, how did you fix them? I can't say the error messages are very helpful either... Response: FAILURECould not connect. r_approved = FAILURE r_error = Could not connect.
I had a very similar problem (only the error message was just FAILURECould not connect) and called tech support. They told me to uncomment 2 lines in lphp.php. The lines were curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); Uncommenting these lines allowed me to connect to the staging server. (Note: I was able to connect to the live server with these two lines commented, so I knew that port 1129 wasn't blocked.)
Thanks. My problem was I had to change GOOD in the XML to SALE. By the way, you do know this thread is over a year old?