Code:
//eye4fraud
if ($response_code == '1' || $response_code == '4')
{
$post_array = array(
'ApiLogin' => 'xxx',
'ApiKey' => 'xxx',
'TransactionId' => $response[6],
'OrderDate' => date("Y-m-d H:i:s"),
'OrderNumber' => $new_order_id,
'BillingFirstName' => $order->billing['firstname'],
'BillingLastName' => $order->billing['lastname'],
'BillingCompany' => $order->billing['company'],
'BillingAddress1' => $order->billing['street_address'],
'BillingCity' => $order->billing['city'],
'BillingState' => $order->billing['state'],
'BillingZip' => $order->billing['postcode'],
'BillingCountry' => $order->billing['country']['title'],
'BillingEveningPhone' => $order->customer['telephone'],
'BillingEmail' => $order->customer['email_address'],
'IPAddress' => $submit_data['x_customer_ip'],
'ShippingFirstName' => $order->delivery['firstname'],
'ShippingLastName' => $order->delivery['lastname'],
'ShippingCompany' => $order->delivery['company'],
'ShippingAddress1' => $order->delivery['street_address'],
'ShippingCity' => $order->delivery['city'],
'ShippingState' => $order->delivery['state'],
'ShippingZip' => $order->delivery['postcode'],
'ShippingCountry' => $order->delivery['country']['title'],
'ShippingCost' => $submit_data['x_freight'],
'GrandTotal' => str_replace( ',', '', $submit_data['x_amount']),
'CCType' => $_POST['cc_type'],
'CCFirst6' => substr($_POST['cc_number'], 0, 6),
'CCLast4' => substr($_POST['cc_number'], -4),
'CIDResponse' => $response[38],
'AVSCode' => $response[5],
'CustomerComments' => $description
);
$post_query = http_build_query($post_array);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'https://www.eye4fraud.com/api/');
// "https://www.eye4fraud.com/api/" 'http://52.2.235.58/Gateway2.php');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
}
//eof eye4fraud
Bookmarks