I have a simple payment processing script which has worked for 2 years but all of a sudden quit. I suspect something is wrong with my CC provider but wanted to cover my bases.
A query string of values is sent VIA curl to an Authorize.net processor.
ob_start();
// setup curl
$ch = curl_init ($url);
// set curl to use verbose output
curl_setopt ($ch, CURLOPT_VERBOSE, 1);
// set curl to use HTTP POST
curl_setopt ($ch, CURLOPT_POST, 1);
// set POST output
curl_setopt ($ch, CURLOPT_POSTFIELDS, $query);
//execute curl and return result to STDOUT
curl_exec ($ch);
//close curl connection
curl_close ($ch);
// set variable eq to output buffer
$process_result = ob_get_contents();
// close and clean output buffer
ob_end_clean();
$clean_data = str_replace("\
","&",trim(str_replace("endofdata", "", trim($process_result))));
Does this CURL connection look ok? I’m getting nothing back from the transaction. $process_result is simply empty.
Thank You