Hey, you know what, I bet I found the error . . .
[Mon Aug 20 21:09:58 2007] [error] PHP Fatal error:
Call to undefined function: parse_response() in /home/merchant/public_html/includes/modules/payment/viaklix.php
on line 251
Now, off to learn about curl, well, I'm assuming as line 240-251 is:
$ch = curl_init();//init curl options
curl_setopt($ch, CURLOPT_URL, $this->url);
curl_setopt ($ch, CURLOPT_FRESH_CONNECT, 1); //no cache connection
curl_setopt ($ch, CURLOPT_POST, 1); //enable the post of vars
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_TIMEOUT, 8 ); // seconds to wait for timeout
curl_setopt ($ch, CURLOPT_REFERER, (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ));// set referr
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $string );//posted vars in fromat key1=value1&key2=value2&
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); //enable return response
$content = parse_response(curl_exec($ch));
Samuel Turnmire
co-Founder
geekFoundry