Simplest Paypal Intigration in HTML Form

Now a days there are a lot of changes with Paypal sandbox intigration in php 

This is simplest way to integrate paypal in HTML or php .   

<form action="" method="post" style="padding: 0; margin: 0;">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="your bussiness paypal id" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="item_name" value="your item" />
<input type="hidden" name="item_number" value="1" />
<input type="hidden" name="amount" value="item price" />
<input type="hidden" name="shipping" value="0" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="notify_url" value="Your notify url">
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="on0" id="on0" value="Size">
                    <input type="hidden" name="os0" id="os0" value="S">
     <input type="hidden" name="on1" id="on1" value="Color">
                    <input type="hidden" name="os1" id="os1" value="Black">
<input type="hidden" name="rm" value="2" >
<input type="hidden" name="return" value="your return url">
<input type="image" border="0" name="paypal" src="images/btn_paypal_nl.gif" onClick=""/>

No comments:

Post a Comment