Sindbad~EG File Manager
<?php
global $AuthorizationPage;
$AuthorizationPage = "https://secure.authorize.net/gateway/transact.dll"; // Payment gateway
//global $TransactionKey = "WLLpQOeBvhhZjuqV"; // obtained from Authorize.Net Merchant Interface; change it periodically there and here.
//global $ReferringPage = "http://www.HelpWithMath.com/PaymentInfo.php";
function postGateway($data)
// data is an associative array of strings whose keys are the fields required by the gateway
{ global $AuthorizationPage;
$request = "";
foreach($data as $key => $value)
{ $request .= urlencode(trim($key)) .
"=" .
urlencode(trim($value)) . "&";
}
$request = rtrim($request," &"); // remove the final ampersand
$ch = curl_init($AuthorizationPage);
echo curl_error($ch);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists