Simple Paypal Integration

</pre>
<?php
if ($_SERVER["SERVER_PORT"] != "80")
{
$pageURL .= "http://".$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
}
else
{
$pageURL .= "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
?>
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" id="point_buy">

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="saloni.ommune-facilitator@gmail.com">

<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!">

<?php
if(!empty($_POST)){
echo "<pre>";
print_r($_POST); }?>
<pre>
Advertisements

Tagged:

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: