How to Create PayPal Payments Standard Buttons Using the Button Factory

If you have a PayPal Business or Premier account, you can use the PayPal Button Factory to create the HTML code need to place a PayPal button on your website. The generated HTML code, when pasted onto one of your website pages, displays a PayPal button that lets customers use their PayPal account to purchase the item(s) associated with the button.

The Button Factory generates HTML code for the entire range of PayPal buttons, including Buy Now, shopping cart, donation, and subscription buttons. Using the Button Factory, create the HTML code for each PayPal button you need on your website. Then, copy and paste the HTML code to the appropriate spot on your website. It's as easy as that, PayPal handles all the back-end processing for your business payments.

1. Access the PayPal Button Factory

To access the Button Factory, log into your PayPal account and navigate to the Create PayPal Payment Button page:

  1. After logging in to PayPal, select the Merchant Services tab, then click My Saved Buttons under Tools and Settings.
  2. Click Create New Button in the Related Items group.

2. Specify Your Button Details

Choose the type of button you want to create from the Button Type drop down menu, then specify the rest of the details for your custom button. Once you have specified all the details for your button, click Create Button to have PayPal generate the custom code for your button.

For example, to create a simple PayPal Buy Now button:

  1. Select Buy Now from the Choose a Button Type drop-down list.
  2. Type the name of the item into the Item Name field and, optionally, enter a unique Item ID to help you identify the item in subsequent transactions.
  3. Enter the price of the item into the Price field, and select a Currency (US dollars is the default currency).
  4. Click Create Button to have the Button Factory generate a custom button that is associated with your PayPal account.
Note: Specific details for all the Button Factory input fields is beyond the scope of this short guide. For information on how to use all the fields in the Button Factory form, see the PayPal Payments Standard Integration Guide.

3. Paste the Button Code into Your HTML Page

When you click Create Button, the Button Factory generates custom HTML code that is specific to the properties you specified for that button. To make the button accessible to your customers, select the HTML button code and copy it to your clipboard. Then, using your website editor, open the web page where you want the button displayed and paste the HTML code in the appropriate location on the page.

How you paste the button code onto a web page depends on the application you use to create and edit your website. While many website editors offer a "what you see is what you get" (WYSIWYG) editing mode, you'll want to past the HTML code into the "code" view of your editor (you should be viewing HTML code when you paste your generated PayPal button code). If you paste the button code into the WYSIWYG view, the editor might modify the HTML code and the PayPal button will not correctly display.

For more details on how to complete this step, see How to Copy PayPal Payments Standard Button Code into Dreamweaver®.

Tips for Pasting the Generated PayPal Button Code

Make sure the code you paste onto your web page (or into an e-mail message) exactly matches the code that was generated by the Button Factory. Pasted code may not match the generated code for the following reasons:

  • You did not copy all of the generated code.
  • Your editing tool might have special areas for pasting HTML code and different areas for pasting URLs or display text. Be sure you paste the generated code into a field that accepts HTML code.
  • Your editing tool might change some characters in the pasted code. For example, your editor might have a variable enumeration feature that modifies field names when you paste code.

Learn More

Use these resources to learn more about PayPal Payments Standard:

PayPal Payments Standard Overview
A brief introduction to PayPal Payments Standard.
Buttons for Single Purchases
An introduction to the Buy Now button, with links to information on the other buttons available to you through the Button Factory. Note that you must first be logged in to your PayPal account to view this document.
HTML Variables for PayPal Payments Standard
Reference information for all HTML variables supported by any kind of PayPal Payments Standard payment button.
PayPal Payments Standard Integration Guide
Details for how to create and use PayPal Payments Standard buttons.