Simple Paypal Integration

if ($_SERVER["SERVER_PORT"] != "80")
$pageURL .= "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
<form action="" method="post" id="point_buy">

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="">

<input type="hidden" name="amount" id="amount" value="100" >

<input type="hidden" name="rm" value="2">
<input type="hidden" name="custom" value="" id="customval">

<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="AU">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="hidden" name="return" value="<?php echo $pageURL ?>">

<br /><br />
<input type="submit" value="Pay with PayPal!">

echo "<pre>";
print_r($_POST); }?>


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: