How to add a PayPal button to your WordPress blog or website

Have you ever wondered how to add a PayPal button to your WordPress blog or website? In this article I’ll show you how easy it is to add a PayPal button to your blog.

A couple of weeks ago I wrote about how to set up the process to give away or sell books on your blog. This is the next article in that series, and today I’ll show you how to integrate PayPal into the process. So in this example, we assume you want to sell an e-book or product on your website and your customers will pay for that product via PayPal.

Firstly, you head over to the PayPal website and login. Once you login, you’ll see some options across the top menu – you select the one labelled ‘Merchant Services’.

Once you’re in the “Merchant Services” section you will see an option to create payment buttons for your website. There are a few options depending on what you are selling, and usually you will select the ‘Sell Individual Items’ button.

PayPal WordPress Create Payment Button

Once you’ve selected the ‘Create One Now’ hyperlink, you’ll be taken to a page that has a number of options with regards to how to build the button. PayPal button for websiteThere are quite a few options here, but thankfully, PayPal has broken down into three recently simple steps.

Most of us are selling a digital product, so we don’t need to bother about things like inventory.

The main choices are from step three, which is where you can customise some of the advanced features of the button. The important thing to make sure we fill out is the option that is called ‘ take customers to this URL when they finish check out’. This is pretty self-explanatory, but this is where you enter the URL of the page on your blog or website where the product can be downloaded. I’ve previously written an article about how to hide pages in WordPress – have a read of that article if you have any confusion about how to do this.


Once you’ve completed this step, then we obtain the HTML code to insert the button onto our website.

PayPal CodeYou’ll be taken to a new page, which has instructions for inserting code into your website.

On the right hand side, you will see an image of the button, and on the left-hand side will be the code.

Right click on the code to copy it. Within WordPress open up the sales page that you need to insert this button into.

Position your cursor where you want the button to be inserted, and select the HTML option at the top of the visual editor. Once you’re in the HTML view, simply paste the code that you’ve copied from the PayPal site.

Now in the Visual Editor you switch back to the ‘Visual’ tab. You should be able to see the button in the correct position.

So, now that you have created the button and added it to your website, let’s look at the sales process:

  1. A customer comes to your sales page and clicks on the buy now button to purchase.
  2. They are taken to the PayPal website, where they complete the transaction.
  3. Once the payment is complete, they are redirected back to your website. They are directed to a hidden page that you have created within WordPress, where the product is available to be downloaded.

Now, this is a very simplistic way of setting up your website for purchases. There are other plug-ins that you can purchase to protect the download area, and also to integrate Aweber into the process, so that people who purchase your item are also instantly subscribed to a mailing list.

I hope this explains the process simply enough for you. If you have any questions or queries, please leave a comment below and let me know what you would like to learn.

Similar Posts:


Allan lives in Adelaide, South Australia with his wife and two boys. He is the founder of Blogger Business Plan and loves helping bloggers learn how to transform their blogs from hobbies into sustainable businesses.
When he's not blogging or working in his financial planning business, you'll find Allan playing guitar, reading or coaching his son's soccer team.

How to price your product or service ebook
2 Responses to How to add a PayPal button to your WordPress blog or website
  1. Fiona Cooper (
    June 24, 2011 | 5:38 am

    Thanks for this Allan – makes it all really easy to understand. Now I just need to get my product up together 😉 Fiona

  2. Pratibodh
    December 23, 2017 | 11:10 pm

    Amazing article on how to add a PayPal button to your wordpress blog or website. Thank for sharing this useful article.
    Pratibodh recently posted..How to use Free Backlinks Generator Online: Make Dofollow LinksMy Profile

Leave a Reply

Wanting to leave an <em>phasis on your comment?

CommentLuv badge

 Thanks for your comment. Tick this box to also subscribe to my newsletter. 

This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 3 approved comments. Use your real name and then @ your keywords (maximum of 3)
Trackback URL