1. Home
  2. Docs
  3. LearnDash Addons
  4. LearnDash Pay for Lessons and Topics

LearnDash Pay for Lessons and Topics

The LearnDash Pay For Lessons and Topics add-on allows you to sell individual LearnDash lessons and topics. The add-on supports WooCommerce and PayPal as payment gateways.

Table of content

  1. Installation
  2. Licensing
  3. General Settings
  4. Lesson Settings
  5. Topic Settings
  6. PayPal Settings
  7. Payments
  8. FAQ

Installation

  • Install and activate the LearnDash LMS plugin.
  • Install and activate the WooCommerce plugin.
  • Install and activate the LearnDash Pay For Lessons and Topics Addon.
  • You will see a new sub-menu titled “Pay for Lessons and Topics” under the LearnDash LMS menu on the WP Dashboard. 
LearnDash Pay For Lessons and Topics – Main Menu

License Configuration

Go to the Licence Settings tab to add and activate the product’s License Key. The License Key can be found in the email you received when you purchased the add-on. Add your license key in the corresponding field and click on Activate.

LearnDash Pay For Lessons and Topics – Licensing

General Settings

Before you continue to configure this add-on, make sure your PayPal business account is configured correctly with LearnDash LMS. To do this, follow LearnDash LMS’s official documentation on PayPal settings.

Once your Paypal account is configured, navigate to LearnDash LMS > Pay For Lessons and Topics to configure the setting options for this add-on.

Go to the General Settings tab from the settings page to view the general settings.

LearnDash Pay For Lessons and Topics – General Settings
  • Payment Method:
  1. Select LearnDash Paypal if you want to use LearnDash Paypal’s payment gateway.
  2. Select WooCommerce if you want to accept payments through WooCommerce Checkouts using all the payment gateways configured with WooCommerce.
  • Allow Selling Lesson:

If this option is enabled, lesson access will be restricted and available for purchase. A payment button will be displayed on the front end.

  • Allow Selling Topic:

If this option is enabled, topic access will be restricted and available for purchase. A payment button will be displayed on the front end.

Lesson Settings

Go to the Lesson Settings tab from the settings page to view the lesson settings options for the add-on.

  • Select Courses:

Here you can select the courses for which you want to accept payments for lessons. 

  • Select Lessons:

To accept payments for a lesson, select the specific lessons you want to sell in this field.

  • Price(s) for selected Lessons:

Here you can configure the price you will charge for each lesson.

LearnDash Pay For Lessons and Topics – Lesson Settings

Note: Configuring payments for lesson access will automatically generate a WooCommerce product linked with the respective lesson access.

LearnDash Pay For Lessons and Topics – Lesson Configuration

Frontend

LearnDash Pay For Lessons and Topics – Lesson Preview

Topic Settings

Go to the Topic Settings tab from the settings page to view the topic settings options for the add-on.

  • Select Courses:

Here you can select the courses for which you want to accept payments for topics. 

  • Select Topics:

To accept payments for a topic, select the specific topic you want to sell in this field.

  • Price(s) for selected Topic:

Here you can configure the price you will charge for each topic.

LearnDash Pay For Lessons and Topics – Topic Settings

Note: Configuring payments for topic downloads will automatically generate a WooCommerce product linked with the respective topic download access.

LearnDash Pay For Lessons and Topics – Topic Configuration

Frontend

LearnDash Pay For Lessons and Topics – Topic Preview

PayPal Settings

In this tab, you can configure the PayPal settings required to manage payments.

Identity Token

Here you can insert the Identity Token for your PayPal account.

LearnDash Pay For Lessons and Topics – Paypal Settings

To get your PayPal Identity Token, follow these steps: 

  • Log into your PayPal Business account.
  • Navigate to Account Settings > Website Payments from the top-right icon.
  • Click on Update in front of the Website Preferences.
LearnDash Pay For Lessons and Topics – Paypal Configuration 1
  • Turn on the auto-return to enable PDT (Payment data transfer) and enter your site’s URL on which you want your student to redirect after purchasing the lesson or topic.
LearnDash Pay For Lessons and Topics – Paypal Configuration 2
  • Turn On the Payment Data Transfer.
LearnDash Pay For Lessons and Topics – Paypal Configuration 3
  • Pressing the save button in the one step above will display the identity token here.
LearnDash Pay For Lessons and Topics – Paypal Configuration 4
  • Set up the rest of the options as per your will.
  • Copy the Identity token to use it further.

Payments

The Payments tab will contain the transaction history of all your lessons and topics sales.

LearnDash Pay For Lessons and Topics – Payments

Note: If the payment status is not updated, you can simply hover over the transaction and click on the “Verify Payment” link to refresh the status.


FAQ

Does the add-on support any payment gateways other than PayPal?

Yes, other than PayPal, WooCommerce is supported.

The Payment tab on the Setting page is not showing the transaction records.

Make sure you have correctly configured PayPal’s identity token, as described in the official documentation.

If I have purchased Lesson access, do students have to repurchase it to retake the lesson?

No, students don’t have to purchase access again. They can revise the lesson multiple times with a single payment.

It is possible to purchase a LearnDash lesson and its relevant topic at the same time through the WooCommerce store? 

Yes, if the LearnDash course is configured to be sold as a WooCommerce product within a WooCommerce shop, the user can buy the lesson and corresponding topic together.

Will the “Payment” tab within the add-on settings list payments made through both LearnDash’s PayPal and the WooCommerce payment gateways?

No, the add-on will only list payments made through LearnDash’s PayPal, whereas the payments handled through WooCommerce gateways will be tracked in the “orders” sub-menu of the WooCommerce section on the WordPress dashboard.

Is access to all of a Lesson’s topics automatically granted when a Lesson is purchased or do topics have to be purchased additionally to the lesson?

If you set the payment only for a lesson then access to all the lesson’s topics will automatically be granted once you purchased the lesson. But, if you set a separate payment for both lessons and their topics then you have to purchase them separately.

Was this article helpful to you? Yes No

How can we help?