PayPal »Get PayPal Button Code

When adding a PayPal “buy now” or donation button to your post, page, or sidebar, you’ll first need to get a PayPal link code from your PayPal account. Follow the steps below to find it.

Here's how to find the code for your button:

  1. Go to and log in to your PayPal account. Please note: the exact options and wording for the following steps on the PayPal website may vary from country to country.
  2. Once you are logged in, navigate to the Button Management page.  Click on the “Create a New Button” link to start creating your button:
    Screen Shot 2016-03-16 at 5.52.58 PM
  3. Once you are on the Create PayPal payment button page:
    • Choose a button type from the dropdown,  Shopping Cart, Donations, or Buy Now
    • Fill in the other fields – they will vary depending on button type
    • DO NOT check the box next to any of the customization options, like drop-down menus or text fields. If you select any of those checkboxes, you’ll generate a button that you won’t be able to use on


  4. If you like, you can customize the button to use your own image.
  5. If you have a Personal PayPal account, select the “Use my primary email address…” option shown under Merchant Account IDs. (Only Premium and Business accounts have a merchant account ID.)
    Merchant Account IDs
  6. Click on Create Button.
  7. You will see now see two sets of code:
    • Website tab – provides HTML code
    • Email tab – provides a plain link

    Believe it or not, you do not want the the code for websites! does not let users post web forms so the website code would be stripped. You must use the link provided in the Email tab. This is the link that you’ll be attaching to your button image. Keep this window open, as you’ll need to copy that URL soon.

  8. Use this link on your site to create a button on your site by following instructions 2-6 here.

↑ Table of Contents ↑

Button Images

The current official list of PayPal button images is available on the PayPal Developer documentation page. For localized PayPal buttons and images, please refer to the PayPal Archive page.

Below are some code examples for some of the official PayPal button images for use on your site.

  • <img src="" alt="Small Buy Now Button" />
  • <img src="" alt="Buy Now Button" />
  • <img src="" alt="Buy Now Button with Credit Cards" />
  • <img src="" alt="Small Donate Button" />
  • <img src="" alt="Donate Button" />
  • <img alt="Donate Button with Credit Cards" src="" />
  • <img alt="Donate with PayPal" src="" />

Not quite what you're looking for?

Get Help