Paypal -BuyNow button code

Like Paypal website, using this below code you can make the payment secure and save.
Now look at the below code which contains more number of fields if you want add all the information you can use all the information else you can add the fields as you needed

Let us see how to add the code

1.Copy and paste the below code in your editor

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="info@example.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Learnwebdevelopment">
<input type="hidden" name="item_number" value="123">
<input type="hidden" name="amount" value="5">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="return" value="http://learnwebdevelopment.info">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

2. Replace with your email id in the line

<input type=”hidden” name=”business” value=”info@example.com“>

3. You change the item name, item_number and value in the below piece of code

<input type=”hidden” name=”item_name” value=”Learnwebdevelopment“>
<input type=”hidden” name=”item_number” value=”123“>
<input type=”hidden” name=”amount” value=”5“>

4. Find the line of code to change the return url

<input type=”hidden” name=”return” value=”http://learnwebdevelopment.info“>

Posted in General Tagged with: ,