Here is the code
Code: Select all
<?
function cc_payment($form_vars)
{
?>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><font size="2"><b>Client Info</b></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2"><?=$_SESSIONї'client']ї'cname']?></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2">Billing Address:<br><?=$_SESSIONї'client']ї'baddress']?></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2">
<?=$_SESSIONї'client']ї'bcity'].",".$_SESSIONї'client']ї'bstate']." ".$_SESSIONї'client']ї'bzip']?></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2">Shipping Address:<br><?=$_SESSIONї'client']ї'address']?></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2"><?=$_SESSIONї'client']ї'loc']?></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2"><?=$_SESSIONї'client']ї'phone']?></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2"><?=$_SESSIONї'client']ї'email']?></font></td>
</tr>
</table>
</td>
<td valign="top" width="20"> </td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><font size="2"><b>Payment Info</b></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2"><form method="post" action="staffpage.php?area=sales&view=ccrun">
CC Type:<select name="cctype"><option></option><option>VISA</option>
<option>MasterCard</option><option>Discover</option><option>Am Express</option></select></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2">Card Num:<input type="text" name="cardnum" size="15"></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2">Exp Date:<input type="text" name="expdate" size="7"></font></td>
</tr>
<tr>
<td width="10"> </td>
<td><font size="2">Amount:<input type="text" name="amount" size="7" value="<?=$form_varsї'amt']?>"></font></td>
</tr>
<tr>
<td width="10"> </td>
<td align="right"><input type="submit" value="Send">
<input type="hidden" name="ttype" value="<?=$form_varsї'ttype']?>">
<input type="hidden" name="ptype" value="<?=$form_varsї'ptype']?>">
</form></td>
</tr>
</table>
</td>
</tr>
</table>
<?
}
function gateway_connection(form_vars)
{
$URL = "certification.authorize.net/gateway/transact.dll";
$data = "x_Version=3.1&x_Delim_Data=True&x_Login=******&x_Password=******&x_Delim_Data=True&".
"x_Invoice_Num=".$_SESSIONї'order']ї'rid']."&x_Description=Manual Media Order&x_Method=CC&".
"x_Type=AUTH_CAPTURE&x_Cust_ID=".$_SESSIONї'client']ї'cid']."&x_First_Name=".
$_SESSIONї'client']ї'fname']."&x_Last_Name=".$_SESSIONї'client']ї'lname'].
"&x_Address=".$_SESSIONї'client']ї'baddress']."&x_City=".$_SESSIONї'client']ї'bcity'].
"&x_State=".$_SESSIONї'client']ї'bstate']."&x_Zip=".$_SESSIONї'client']ї'bzip'].
"&x_Phone=".$_SESSIONї'client']ї'phone']."&x_Email=".$_SESSIONї'client']ї'email'].
"&x_Ship_To_First_Name=".$_SESSIONї'client']ї'fname']."&x_Ship_To_Last_Name=".$_SESSIONї'client']ї'lname'].
"&x_Ship_To_Address=".$_SESSIONї'client']ї'saddress']."&x_Ship_To_City=".$_SESSIONї'client']ї'scity'].
"&x_Ship_To_State=".$_SESSIONї'client']ї'sstate']."&x_Ship_To_Zip=".$_SESSIONї'client']ї'szip'].
"&x_Card_Num=".$form_varsї'cardnum']."&x_Exp_Date=".$form_varsї'expdate']."&x_Amount=".$form_varsї'amount'];
exec("/usr/local/bin/curl -m 120 -d "$data" https://$URL -L",$return_message_array, $return_number);
for ($i = 0; $i < count($return_message_array); $i++) {
$results = $results.$return_message_arrayї$i];
}
$res = explode(";",$results);
if ($resї0]=="1")
{
add_trans($form_vars);
}
else
{
$query = "SELECT * FROM responsecodes WHERE responsecode = ".$resї0]." AND reasoncode = ".$resї1];
$result = query_db($query, "2");
$code = mysql_fetch_array($result);
trans_form($codeї'reasontext']);
}
}Parse error: parse error, unexpected T_STRING, expecting ')' in /usr/wwws/users/faog/staffpages/mediadb_cc_fns.php on line 82
which is the line that "function gateway_connection(form_vars)" is on.
See anything I am not