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 your Account Home page and under Selling tools, click “Details” to get to your Merchant Services page.  Click on the “Create payment buttons for your website” 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, 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’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:

↑ 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