1. Home
  2. Docs
  3. LearnDash Core
  4. Settings
  5. PayPal Settings

PayPal Settings

LearnDash comes with built-in support for accepting payments via PayPal. No additional plugins or add-ons are needed, although there are some required settings that you must fill out before you can sell your courses with PayPal.

Along with our Stripe integration, this is one of the simplest ways to start selling your LearnDash courses.

You will need to register for a free PayPal account before you can accept payments, and your account must be verified (read about verified accounts).

NOTE
LearnDash currently supports PayPal Payments Standard only.

Should You Use PayPal?

You should consider using PayPal to accept payments if:

✅ you’re looking for a quick & easy way to start selling courses
✅ you offer one course, or only a few courses, with a simple payment structure

You might not want to use PayPal if:

❌ you want to customize the user’s checkout experience
❌ you are creating a fully functional membership site
❌ you’re selling other products in addition to courses
❌ you want to closely manage the account creation & login process

If you’re looking for more robust member management, a customizable checkout experience or integrations with other WordPress plugins or services, check out our ecommerce & membership add-ons.

Sign Up for a PayPal Account

  • Navigate to paypal.com and follow the instructions for registering a new account

BUSINESS OR PERSONAL?
We highly recommend setting up a business account. You can read about the difference in PayPal’s docs.

Once you’ve set up & verified your PayPal account, continue reading for instructions on configuring your PayPal settings.

PayPal Settings

LearnDash PayPal settings

Your PayPal settings must be filled in before you can accept payments.

  1. In your WordPress admin area, navigate to LEARNDASH LMS > SETTINGS
  2. Click on the PayPal Settings tab

Now let’s go through each option:

PayPal Email

This is the email address that you used to set up your PayPal account.

PayPal Currency

This is a three-letter code that corresponds to the country in which you reside.

Common currency codes include:

  • USD for United States Dollar
  • CAD for Canadian Dollar
  • AUD for Australian Dollar

See a list of PayPal currency codes here.

PayPal Country

This is a two-letter code that corresponds to the country in which you reside.

Common country codes include:

  • US for United States
  • CA for Canada
  • AU for Australia

See a list of PayPal country codes here.

PayPal Cancel URL

This is where a user will be redirected if they cancel their payment, or the payment fails.

You could create a custom page with your support or contact information, or simply send the user back to your homepage.

Enter the full URL, beginning with https://.

PayPal Return

This is where a user will be redirected after a successful payment is made.

We recommend creating a custom “thank you” or “next steps” page, or sending them to a login or account page.

Enter the full URL, beginning with https://.

PayPal Notify URL

This URL should be pre-populated for you, and should not be changed. It is required for LearnDash to communicate with PayPal.

If this option is blank, you should add the following URL, replacing “yoursite.com” with your real domain name.

https://yoursite.com/sfwd-lms/paypal

Use PayPal Sandbox

If your site is still in development, and you want to test a PayPal payment, you can set up a Sandbox account with PayPal.

Check this box to enable Sandbox mode. Be sure to uncheck it, and save your settings, once you go live.

Course Configuration

After you’ve configured your PayPal settings, the final thing you need to do is set up a course to accept payments.

  1. In the WordPress admin area, navigate to LEARNDASH LMS > COURSES
  2. Click on the course you’d like to sell with PayPal
  3. Click on Settings at the top
  4. Scroll down to Course Access Settings
  5. Set the “Access Mode” to one of two values:
  • Buy Now: Use “Buy Now” for one-time payments
  • Recurring: Use “Recurring” if you’d like to set up a recurring payment (aka: subscription)

And finally, enter your price in the Course Price field. Ex: 29.99

  • The currency symbol will be added automatically for you
  • If your price is an even dollar amount, you may omit the decimal point & cents (ex: 29)

For recurring payments, you need to include the “Billing Cycle” in days, weeks, months or years.

Setting price on Buy Now course in LearnDash

The User Experience

When users visit your course page, they will see a “Take this Course” button (this language can be customized using custom labels). When a user clicks this button, they will be sent to PayPal.com where they can choose their payment method and complete their purchase. The transaction will take place on PayPal’s website.

Users may choose any of the following PayPal payment methods:

  • Credit Card
  • Debit Card
  • Linked Bank Account
  • PayPal Balance

LearnDash PayPal payment screen animation example

After payment is complete, the user will be redirected to whatever URL you entered in your PayPal Return settings above. A new user account is automatically created, and that user is enrolled into the course they just purchased.

FAQ

Can I use both PayPal AND Stripe?
Yes. You will need to install the Stripe integration & configure your settings (instructions here). Once you’ve configured both payment methods, users will be presented with two options when they click the “Take this Course” button. It will look like this:
(design may vary based on your theme)

Payment Button, PayPal or Stripe options

When will I receive my money?
You need to manually withdraw your money from PayPal. Learn more about PayPal’s options for transferring money to your bank.

Can I set up recurring payments (aka: subscriptions)?
Yes. In the course settings, just set your “Access Mode” to “Recurring,” and choose a billing cycle.

Can I offer coupons or discounts?
No. The LearnDash PayPal integration does not allow you to offer discounts. Consider using one of our other ecommerce or membership add-ons.

Troubleshooting

Error: “Path to the CA certificates not set. Please add it to curl.cainfo in the php.ini file. Otherwise, PayPal may not work.”
This error is related to the way in which your SSL certificate was installed. Please contact your hosting provider and send them a copy of the error message.

Paid users are not automatically enrolled in the course.
Please make sure you have verified your PayPal account.

Can I offer coupons or discounts?
No. The LearnDash PayPal integration does not allow you to offer discounts. Consider using one of our other ecommerce or membership add-ons.

Other technical issues

  • Ask your host to make sure cURL is enabled on your server

My “Take this Course” button is missing.
By default, all site administrators are automatically enrolled in all courses, so they will not see the “Take this Course” button. You can either log out of your account and refresh the page, or view your course page in a private browsing window (or a completely different browser).

Was this article helpful to you?

How can we help?