How to hide sellers email and paypal info

I want to hide the sellers e-mail address and PayPal information when a buyer clicks Pay Now using PayPal. I have seen a competitor do this, and now I am trying to figure it out.

When making a purchase from my website using PayPal, buyer is sent to your order summary page. And this shows “Options” that reveals the sellers username, email address, paypal address, and the date of purchase.

I would like to hide the entire Options section or hide only the email and paypal address.

Here is the entire code that is on our buy_now.php,

"<? session_start(); include(“connect.php”);
if ($_SERVER[‘REQUEST_METHOD’] != ‘POST’) exit;
include(“header.php”);
$ppemail = mysql_real_escape_string($_POST[‘ppemail’]);
$willdo = mysql_real_escape_string($_POST[‘willdo’]);
$username = mysql_real_escape_string($_POST[‘username’]);
$user = mysql_real_escape_string($_POST[‘user’]);
$id = mysql_real_escape_string($_POST[‘id’]);

$buyer_email = mysql_real_escape_string($_POST[‘buyer_email’]);
$price = mysql_real_escape_string($_POST[‘price’]);
$postdate = mysql_real_escape_string($_POST[‘postdate’]);

$myresult = mysql_query(“SELECT * FROM members where username = '”.mysql_escape_string($user).“'”);
while($mydata = mysql_fetch_array($myresult)){
$email = mysql_real_escape_string($mydata[‘email’]);
}
$my_result = mysql_query(“SELECT * FROM members where username = '”.mysql_escape_string($_SESSION[userName]).“'”);
while($my_data = mysql_fetch_array($my_result)){
$buyer_email = mysql_real_escape_string($my_data[‘email’]);
}
$result = mysql_query(“SELECT * FROM sitesettings”);
while($data = mysql_fetch_array($result)){
$site_url = mysql_real_escape_string($data[‘site_url’]);
?>

<div id=“buy_now”>
<script language=“JavaScript” type=“text/javascript”>
/<![CDATA[/
function confirmSubmitt()
{
var agree=confirm(“You do not have sufficient funds in your account, Use the paypal option instead.”);
if (agree)
return true ;
else
return false ;
}
/]]>/
</script>

<div class=“art-Post”>
<div class=“art-Post-tl”></div>
<div class=“art-Post-tr”></div>
<div class=“art-Post-bl”></div>
<div class=“art-Post-br”></div>
<div class=“art-Post-tc”></div>
<div class=“art-Post-bc”></div>
<div class=“art-Post-cl”></div>
<div class=“art-Post-cr”></div>
<div class=“art-Post-cc”></div>
<div class=“art-Post-body”>
<div class=“art-Post-inner”>
<div class=“art-PostContent”>
<center>
<div class=“buy_box”>Thank you for purchasing this job “<i><? echo $willdo?></i>” Choose from one of the options below to complete the transaction.</div>
<table>
<tr>
<td align=“center”>
<div class=“cleared1”></div>
<form action=“https://www.paypal.com/cgi-bin/webscr” method=“post”>
<input type=“hidden” name=“cmd” value=“_xclick”>
<input type=“hidden” name=“business” value=“<? echo $ppemail ?>”>
<input type=“hidden” name=“item_name” value=“<? echo $willdo?>”>
<input type=“hidden” name=“item_number” value=“<? echo $id ?>”>
<input type=“hidden” name=“no_shipping” value=“1”>
<input type=“hidden” name=“return” value=“<? echo $site_url ?>”>
<input type=“hidden” name=“cancel_return” value=“<? echo $site_url ?>”>
<input type=“hidden” name=“notify_url” value=“<? echo $site_url ?>/pp_ipn.php”>
<input type=“hidden” name=“return” value=“<? echo $site_url ?>”>
<input type=“hidden” name=“rm” value=“2”>
<input type=“hidden” name=“no_note” value=“1”>
<input type=“hidden” name=“currency_code” value=“USD”>
<input type=“hidden” name=“custom” value=“<? echo $username?>”>
<input type=“hidden” name=“on0” value=“<? echo $user ?>”>
<input type=“hidden” name=“on1” value=“<? echo $buyer_email ?>”>
<input type=“hidden” name=“os0” value=“<? echo $email ?>”>
<input type=“hidden” name=“os1” value=“<? echo $postdate ?>”>
<input type=“hidden” name=“amount” value=“<? echo $price ?>”>
<input type=“image” src=“images/paypal.gif” border=“0” name=“submit” alt=“Make payments with PayPal - it’s fast, free and secure!”>
</form>
</td>
<td align=“center”><div class=“cleared1”></div>
<? $rs_settings = mysql_query(“select * from members where userName='”.mysql_escape_string($_SESSION[userName]).“'”);
while ($row_settings = mysql_fetch_array($rs_settings)) {
$balance = mysql_real_escape_string($row_settings[‘balance’]);
}
if(($balance) > $price OR ($balance) == $price) {
echo ‘<form action=“use_balance#use_balance” method=“post” class=“nyroModal”>
<input type=“hidden” name=“id” value="’.$id.‘“>
<input type=“hidden” name=“balance” value=”’.$balance.‘“>
<input type=“hidden” name=“postdate” value=”’.$postdate.‘“>
<input type=“hidden” name=“price” value=”’.$price.‘“>
<input type=“hidden” name=“job” value=”’.$willdo.‘“>
<input type=“hidden” name=“seller_id” value=”’.$user.‘“>
<input type=“hidden” name=“buyer_id” value=”’.$username.‘“>
<input type=“hidden” name=“seller_email” value=”’.$email.‘“>
<input type=“hidden” name=“buyer_email” value=”’.$buyer_email.‘">
<input type=“submit” class=“submit” value="Use from my balance of $’.$balance.‘"></form>’;
}else{ ?>
<input type=“submit” class=“submit” value=“Use my balance” onClick=“return confirmSubmitt()”/>
<?}
?>
</td>
</tr>
</table></center>
</div>
<? } ?>
<div class=“cleared”></div>
</div>
</div>
<h6></h6>
</div>
</div>
</div>"

I thought I would be smart and remove <input type=“hidden” name=“on1” value=“<? echo $buyer_email ?>”> and <input type=“hidden” name=“os0” value=“<? echo $email ?>”> to fix my problem. And it worked fine when checking out after trying to make a purchase, it removed the email and paypal address as I wanted. However I came to found out that it needs those variables to be passed to the paypal ipn, or no record of buyer and seller emails will get posted into the database.

So again, all I need is to HIDE the sellers email address and paypal address. Anyone have any ideas?

Does the competitor website internally process the checkout? If so they are probably using the API manually handling the checkout process. In which case you don’t have to expose any data client-side.

Both of our websites redirects sellers to https://www.paypal.com/us/cgi-bin/webscr so I cannot tell if they’re handling it internally. We both redirect to the same page, our checkout looks the same except they have no “options” for the order summary.

EDIT: I believe I know the reason. I have never been a PayPal Merchant so I don’t understand how it works, however my competitor is a PayPal Merchant. Perhaps there is an option to show select information if you’re a merchant?