PayPal »Get PayPal Button Code

There is now a much simpler way to add payment buttons on your site — Simple Payments. The feature is available for Premium and Business plans on and on Jetpack sites running version 5.2 or higher.

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 go to to start creating your button:

  3. Once you are on the Make a PayPal Button page:
    • Choose a button type from the grid, Donations, Buy Now, or Add to Cart (new!).
    • Fill in the top few fields – they will vary depending on button type
    • DO NOT check the box next to any of the “Customize button” 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’d like, you can customize the button to use your own image. This step is not required – if you don’t do this, it’ll use the default PayPal button.
  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. To do so, you can use one of the images below:

Note: When adding the “Add to Cart” or Shopping Cart button, or, the Donate button you can use the “Website” code (“Button HTML” for the Donate button) that is generated and paste it right into the HTML editor of your site. A “shortcode” will automatically be created on your site which you publish. When you paste the Shopping Cart button and it’s published, users can add that particular item to their cart. This will go to a cart on where they can proceed with checkout.

↑ 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="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="" />
Preview Image
<img alt="Add to Cart" src="" />

Not quite what you're looking for?

Get Help