How to Create PDF Invoices in WordPress

Are you looking to create PDF invoices after every purchase on your WordPress e-commerce and membership website?

If you run a business that sells products online, you will agree that an invoice is one of the most important things to complete a sale cycle.

When a customer buys a product from your website, you need to send them an invoice to confirm their purchase and also for you to keep track of customer transactions and product sales on your website.

Manual generation of invoices can be a pain and a time-consuming task, but it doesn’t have to be so, especially if WordPress powers your online store.

Generating invoices in WordPress is one of the most common eCommerce features where you need the help of a plugin to manage the process efficiently.

In this article, I will show you how to use the ProfilePress plugin to set up a paid membership site and automatically generate PDF invoices for our customers.

What is ProfilePress?

ProfilePress is an eCommerce and WordPress membership plugin enabling you to sell digital products, create membership sites and control your website content.

ProfilePress comes with a “Receipt addon” that allows you to generate beautiful and detailed purchase receipts for your customers. After a successful order, your customers can view, print and download a PDF invoice.

Why Create PDF Invoices?

There are numerous reasons you should generate an invoice for your customers, but we will look at a few of them in this article.

  • Order Information: Generating an invoice is an excellent way to provide an overview of vital information regarding an order. The invoice will provide information such as date, quantity, price, etc., essential information to your customers.
  • Record Keeping: Creating invoices in WordPress is a good form of record keeping. Invoices can help you track sales and transactions by automatically attaching PDF invoices to internal email notifications.
  • Customer Experience: Sending a PDF invoice to your customer’s mailbox or offering a downloadable PDF on the order confirmation page is an excellent way to improve customer experience. This will allow the customers to confirm that you have successfully received their orders and enhance your site’s credibility.

How to Make PDF Invoices in WordPress

As you know, invoices are created when a purchase has been made, so before we can make a PDF invoice, there are a few things we will need to do. So, we will follow the steps below to achieve our goal.

  1. Install ProfilePress Plugin
  2. Setup a Payment Gateway
  3. Create Membership Plans & Checkout Process
  4. Setup and Generate PDF Invoice

How to Install and Activate ProfilePress

The first step in the process will be to install and activate the ProfilePress plugin. You will need to purchase a ProfilePress Pro License and install the ProfilePress plugin. To do that, head to the ProfilePress website to purchase a suitable license plan.

After purchasing your copy of the ProfilePress Plugin, you will receive a confirmation email with a link to download the plugin zip file and your license key. You can also download the plugin from your account page on the ProfilePress website.

Once you have downloaded the plugin, login to your WordPress admin dashboard, and navigate to the Plugins page; click on the “Add New” button and click “Upload Plugin.”

Next, click “Choose file” to select the previously downloaded plugin zip file. Click “Install Now.”

After installation is complete, click the Activate Plugin button.

At the top of the page, you will see a notification that says, “ProfilePress needs to create several pages,” Click on the “Create Pages” button to complete the plugin setup.

If you do not see this notification, navigate to ProfilePress > Dashboard and click the “Create pages” button to complete the plugin setup.

With this done, we have completed the initial setup of the ProfilePress plugin on our WordPress site.

How to Setup a Payment Gateway

For an order to be complete, you will need a way to collect payments from your customers, so for this article, I will show you how to collect payments with Stripe, which comes integrated with the ProfilePress plugin.

Note that ProfilePress supports other payment methods, including PayPal, Mollie, Paystack, and Razorpay.

You can configure the Stripe payments on your site by navigating to ProfilePress > Settings > Payments > Payment Methods and choosing Stripe.

Click on the “Connect Stripe” button, follow the prompts, and you are all set to start accepting payments from your customers.

Aside from Stripe, ProfilePress supports other popular payment gateways like PayPal, Razorpay, Paystack, and Mollie.

Creating Membership Plans & Checkout Process

Now that we have a way to collect payments for our products, the next thing is to create the products that will be sold to our customers. In this example, we will create a digital product or downloadable for our customers.

Go to ProfilePress >> Membership Plans to create a new membership plan or open up the edit screen of an existing one.

Click on “Add New Plan,” and you will be taken to the page where you can add a plan and set up the details for your product.

Under Plan Details, input the Plan name, Description, Purchase Note, User Role, and Price.

Next, scroll to the Downloads & Integrations meta box and open the Digital Product section.

Click the Add File button, and then name the file. Enter the downloadable URL if it’s hosted elsewhere, or select the “Choose file” button to insert an existing file from your Media Library or upload a new file. Upload the file and click Insert to set up each downloadable file URL.

Enter “Download limit” (optional). Once a user hits this limit, they can no longer download the file.

Enter “Download expiry” (optional). If you input a specific number of days, the download links will expire after that number of days.

Once you are done editing the membership plan, save your changes.

save membership plan

Every membership plan includes a checkout link to add to your website pricing page or email your users to make payments or purchase the product.

After saving the plan, you will find the checkout URL on the plan editing page.

You can send your customers the checkout URL or create a pricing page on your website with the checkout URL.

As you can see in the image above, the product’s price is shown, the stripe payment gateway is also shown, and your customer fills in their payment details to purchase the digital product.

How to Setup and Generate PDF Invoices

For our invoice generation, we will use the ProfilePress Receipt Addon. This addon will enable your customers to view, print and download a PDF receipt or invoice of their orders after they successfully purchase your products.

In the steps below, we will activate the receipt addon, configure the receipt addon, view orders as a customer and admin, and learn how to add a PDF invoice link to our order email.

Navigate to ProfilePress>>Addons to activate the Receipt Addon.


Next, we need to configure the Receipts settings; you can find its setting by navigating to ProfilePress >> Settings >> Payments >> Receipt Settings.

You should enable “Disable for Free Orders” if you don’t want free orders to have receipts or invoices.

Enter your Logo URL in the logo URL field if you want to display your website logo on the receipt or invoice,

If you want to display any additional information at the bottom of the invoice/receipt, use the “Additional Information” setting.

By default, the button to view order receipts is labeled “View Receipt,” but you can change this with the “Receipt Button Label” field.

Don’t forget to save your changes when done.

Viewing Order Receipts as an Admin

The next thing is to view your order receipts. As an admin, you can view all order receipts, which is helpful for stock keeping and auditing.

You can view and download any order receipt or invoices from the order edit page accessible via ProfilePress >> Orders in the WordPress dashboard.

Viewing Order Receipts as a Customer

The customers of your eCommerce products or membership site can also view and download the invoice for their orders from their Account page.

How to Add Receipt Link in Order Emails

ProfilePress provides a receipt URL tag that allows you to embed a link to the receipt page for a particular order. You only need to add the {{receipt_url}} tag in the order emails that ProfilePress sends, and you users will be able to view and download their invoices.

You can edit the order email by navigating to ProfilePress > Settings > Emails > Order.

Once this is set up, customers can easily access their invoice from the order confirmation email.

Final Words

Creating PDF invoices in WordPress is easy when you use a plugin like ProfilePress. ProfilePress helps you generate professional invoices and has all the tools you need to start selling digital products online, including PDFs, ebooks, software, services, courses, music, and more.

By following the steps in this article, you should be able to install the ProfilePress plugin, set up a payment gateway, create a product for sale, view your order receipts, and generate customer invoices.

Remember that ProfilePress offers much more than creating invoices in WordPress, so I recommend you explore the plugin and its features, and I am sure you will find more ways to use it.

Create Paid Membership Websites in Minutes

Install ProfilePress today and get a modern and powerful WordPress membership & ecommerce website – the easy way!