Sindbad~EG File Manager
<?php
global $AuthorizationPage2;
$AuthorizationPage2 = "https://secure.authorize.net/gateway/transact.dll"; // Payment gateway
$TransactionKey2 = "WLLpQOeBvhhZjuqV"; // obtained from Authorize.Net Merchant Interface; change it periodically there and here.
//global $ReferringPage = "http://www.HelpWithMath.com/PaymentInfo.php";
function postGateway2($request)
{ global $AuthorizationPage2;
$ch = curl_init($AuthorizationPage2);
echo curl_error($ch);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
// curl_setopt($ch, CURLOPT_CAINFO, 'drive:\pathto\ca-bundle.crt');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
//curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
//curl_setopt($ch, CURLOPT_REFERER, $ReferringPage);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE,1);
echo curl_error($ch);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Prova Gateway</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$response = postGateway2("x_version=3.1&x_delim_data=TRUE&x_login=hel481307642&x_password=towardthe1" .
"&x_card_number=5424000000000015&x_exp_date=012006&x_amount=89.95&x_type=AUTH_CAPTURE" .
"&x_test_request=TRUE&x_email=beeson%40cruzio.com&x_email_customer=TRUE" .
"&x_relay_response=false"
);
echo "La risposta dal gateway �: " . $response;
?>
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists