Who else can provide the service??
Everything has been working fine for us during test mode, but as soon as switched to real mode it would hang.
This is part of the code we use.
$query1 ="x_Version=$x_Version&";
$query1 .="x_Method=CC&";
$query1 .="x_Test_Request=$x_Test_Request&";
$query1 = "x_ADC_Delim_Data=TRUE&";
$query1 .="x_ADC_URL=FALSE&";
$query1 .="x_type=AUTH_CAPTURE&";
$query1 .="x_Login=$x_login&";
$query1 .="x_Password=$x_password&";
//$query1 .="x_First_Name=$first_name&"; //First Name
//$query1 .="x_Last_Name=$last_name&"; //Last Name
$query1 .="x_Exp_Date=$month/$year&"; //Expiry Date
$query1 .="x_Card_Num=$card_number&"; //Credit Card Number
$grand_total = $row["total_due"];
$query1 .="x_Amount=$grand_total"; //Total amount due
$query2 = "POST /gateway/transact.dll HTTP/1.0\r\n";
$query2 .= "Content-type: application/x-www-form-urlencoded\r\n";
$query2 .= "Content-length: " . strlen($query1) . "\r\n\r\n";
$fp = fsockopen("secure.planetpayment.com",80,&$errno,&$errstr);
if ($fp)
{
fputs($fp,$query2.$query1);
$response = "";
while (!feof($fp))
{
$response .= fgets ($fp,1024);
}
}
$contents = explode ("Content:", $response);
$a = $contents[1];
$results = explode (",", $a);
$response_code =$results[1];
$auth_code = $results[4];
$response_reason_code = $results[2];
$trans_code = $results[37];
$response_reason = $results[3];
As soon as we change from 80 to 443, the thing fucks up.
Can anyone help??
Jason.