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.
Does this CURL connection look ok? I'm getting nothing back from the transaction. $process_result is simply empty.
// 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
//close curl connection
// set variable eq to output buffer
$process_result = ob_get_contents();
// close and clean output buffer
$clean_data = str_replace("\n","&",trim(str_replace("endofdata", "", trim($process_result))));