Buy Now Buttons
Introduction
Technical Overview
Manual
Techniques
Examples
Sign Up Now

Technical Overview


The following instructions provide a brief overview of PayPal's Buy Now Buttons. For more detailed instructions or to add special features to your Buy Now buttons, please refer to the Website Payments Standard Integration Guide.

How It Works

Buy Now Buttons is easy to set-up and use:
  1. Log in to your PayPal account.
  2. Click on the Merchant Services tab
  3. Click on the Buy Now Buttons link
  4. Specify the name, price, and other details of the item you wish to sell
  5. Add more optional information such as shipping, sales tax, and option fields (for size, color, etc.)
  6. Click Create Button Now and the Button Factory will generate customized HTML code
  7. Paste the HTML code on your website to create your Buy Now button.
When a buyer clicks the Buy Now button, he will be taken to a secure PayPal payment page, where he can log in to an existing PayPal account or sign up for a new one, and quickly complete the purchase.

Single Item Purchase HTML Code

Experienced HTML users can bypass the Button Factory and create their own Buy Now buttons by altering the HTML code directly. The sample 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/id/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/x-click-but01.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

Pasting the code above into your website would generate a button that looks like this:


If you dynamically generate portions of your site, you can populate your Buy Now buttons dynamically and save time by updating the variables with information from your database. To use the button above for a different item, you would only need to edit two variables: item_name, and amount.

For more information about using the PayPal Buy Now Buttons on your website, see the Website Payments Standard Integration Guide.