|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.|
Buy Now Buttons is easy to set-up and use:
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.
- Log in to your PayPal account.
- Click on the Merchant Services tab
- Click on the Buy Now Buttons link
- Specify the name, price, and other details of the item you wish to sell
- Add more optional information such as shipping, sales tax, and option fields (for size, color, etc.)
- Click Create Button Now and the Button Factory will generate customized HTML code
- Paste the HTML code on your website to create your Buy Now button.
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):
Single Item Purchase HTML Code
|<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="email@example.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!">
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.