PayPal for Digital Goods WordPress Plugin

The PayPal for Digital Goods plugin allows you to generate a PayPal payment button that will let your customers pay for a digital file instantly using an inline/popup window using the PayPal’s in-context express checkout API/Gateway.

The customer will never leave your site to make the payment. The digital file will be given to the user immediately after the payment automatically.

Here is How it Works

You will create a Buy Now button on the landing page of your digital file product using the shortcode provided by this plugin. The button will look something like the following:


When your customers click the Buy button, an inline popup window will open for the payment. See example below:


The customer will get the file download immediately after the payment.

How PayPal’s In-Context Express Checkout Works

The Express Checkout flow keeps the buyer on your web page or mobile app throughout the entire checkout flow. On desktops, buyers check out in a secure lightbox window that overlays your website. On tablets and smart phones, buyers access the PayPal payment screens in a full-page mobile browser.


Plugin Download

App Category
WordPress Plugin
Software Name
PayPal for Digital Goods Plugin
Date Modified
Operating System
WordPress 4.9
WordPress 3.5 or higher
USD $0
A plugin to manage and monitor downloadable files for your WordPress site
Landing Page
File Format

PayPal for Digital Goods Installation

  • Go to the Add New plugins screen in your WordPress admin area
  • Click the upload tab
  • Browse for the plugin file (
  • Click Install Now and then activate the plugin

Plugin Usage

Settings Configuration

Click on the PayPal for Digital Goods menu link under your WordPress settings interface to configure the API and settings data.


Specify the currency code and the text for the Buy Button (you can override this text in the shortcode also).

Finally, enter your PayPal API details in the Credentials settings. This page shows how to get your PayPal api credentials.


Getting Your Client ID

Do the following to get your client ID or setup a new one:

  1. Navigate to My Apps & Credentials and click Log into Dashboard in the top, right corner of the page.
  2. Scroll down to REST API Apps and click the name of your app to see the app’s details. If you don’t have any apps, create one now:
    a. Click Create App.
    b. In App Name, enter a name and then click Create App again. The app is created and your client ID is displayed.
  3. Click the Sandbox / Live toggle to display and copy the client ID for each environment.

Creating the Buy Button

Enter the following shortcode where you want to add the buy button for your digital file.

[paypal_for_digital_goods name="My eBook" price="25" url="" button_text="Buy Now"]

You can upload your files to your site using the WordPress media uploader. This tutorial will be helpful if you don’t know how you use the WordPress media uploader.

You can add this shortcode anywhere on your site (post, page, sidebar etc) to sell digital files via PayPal in-context express checkout.

Additional Button Customization Options

The payment button can be customized with the following shortcode parameters:
  • btn_type = ‘checkout’,’pay’,’paypal’,’buynow’
  • btn_size = ‘small’,’medium’,’large’,’responsive’
  • btn_color = ‘gold’,’blue’,’silver’,’black’
  • btn_shape – ‘pill’,’rect’

More WordPress Plugins

Check out our WordPress plugins page for more cool WordPress plugins.