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="" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="">
<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="">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="" width="1" height="1">

2. Replace with your email id in the line

<input type=”hidden” name=”business” value=”“>

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=”“>

Posted in General Tagged with: ,