Pages

Paypal "Buy Now" Button HTML Code

When you use PayPal's Buy Now Buttons, you can sell individual items from your website, or even using a link in an email! Buy Now Buttons is a low–cost way for you to accept credit card and bank account payments, and can be fully integrated with your website in a few easy steps.

The example code below shows the minimum information you need to create a Buy Now button (in this case, to purchase a teddy bear):




<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me@mybusiness.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Teddy Bear">
<input type="hidden" name="amount" value="12.99">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>





Dynamic Button Generation

If you dynamically generate portions of your site, save time by updating the variables with information from your database. To use the button above for a different item, edit the values for two variables:
  • item_name
  • amount

No comments:

Post a Comment