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:
- Go to http://www.paypal.com/login 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.
- Once you are logged in, navigate to the Button Management page. Click on the “Create a New Button” link to start creating your button:
- 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 WordPress.com.
- If you like, you can customize the button to use your own image.
- 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.)
- Click on Create Button.
- You will see now see two sets of code:
Believe it or not, you do not want the the code for websites! WordPress.com 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.
- 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:
Below are some code examples for some of the official PayPal button images for use on your site.
<img src="https://www.paypalobjects.com/webstatic/en_US/btn/btn_buynow_86x21.png" alt="Small Buy Now Button" />
<img src="https://www.paypalobjects.com/webstatic/en_US/btn/btn_buynow_107x26.png" alt="Buy Now Button" />
<img src=" https://www.paypalobjects.com/webstatic/en_US/btn/btn_buynow_cc_171x47.png" alt="Buy Now Button with Credit Cards" />
<img src=" https://www.paypalobjects.com/webstatic/en_US/btn/btn_donate_74x21.png" alt="Small Donate Button" />
<img src=" https://www.paypalobjects.com/webstatic/en_US/btn/btn_donate_92x26.png" alt="Donate Button" />
<img alt="Donate Button with Credit Cards" src=" https://www.paypalobjects.com/webstatic/en_US/btn/btn_donate_cc_147x47.png" />
<img alt="Donate with PayPal" src=" https://www.paypalobjects.com/webstatic/en_US/btn/btn_donate_pp_142x27.png" />