Buy Now Button

Buy Now buttons are used to sell individual items on a website. You can create the button code yourself or use a tool on the PayPal website where you can generate custom Buy Now button code.

To create a Buy Now button on the PayPal website:

  1. Log in to your Business or Premier account.
  2. Click the Merchant Services tab.
  3. Under PayPal Website Payments Standard, Key Features, click Buy Now Buttons.

Important: To protect against malicious users tampering with the button code and submitting an incorrect charge, see Securing Your Website Payment Standard Buttons. If you turned on the Security Settings in the Selling Single Items page, your button is already secured. Merchants with significant payment volume are required by the PayPal user agreement to take precautions on securing Website Payment Standard Buttons.

Here is sample code for a Buy Now button. You can modify the values in this code for your application.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
   <input type="hidden" name="cmd" value="_xclick">
   <input type="hidden" name="business" value="sample@sample.com">
   <input type="hidden" name="item_name" value="Item Name Goes Here">
   <input type="hidden" name="item_number" value="Item Number Goes Here">
   <input type="hidden" name="amount" value="100.00">
   <input type="hidden" name="no_shipping" value="2">
   <input type="hidden" name="no_note" value="1">
   <input type="hidden" name="currency_code" value="USD">
   <input type="hidden" name="bn" value="IC_Sample">
   <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!>
   <img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

A few important variables in this code are described in the following table. For a full list of possible variables, see the Standard Variable Reference.

Variable Value
business The email address of the PayPal account selling the item
item_name The name of the item for sale
item_number An identifier you can use to track an internal inventory number
amount The price of the item
currency_code The currency of the value specified in amount
image The URL of the button's image