The LearnDash 2Checkout integration is one of several options for selling your courses. If you already have a 2Checkout account, or you like what their payment gateway has to offer, you can use this integration to sell courses on your LearnDash site.
NOTE
You will need to register for a free 2Checkout account before you can use this integration.
The 2Checkout integration will allow you to sell courses, but it doesn』t come with a lot of flexibility. 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.
For other simple ways to accept payments, consider our built-in PayPal integration or the free Stripe add-on.
Table of Contents [show]1 Who Should Use the 2Checkout Integration?2 Sign Up for a 2Checkout Account3 Install the 2Checkout Integration4 2Checkout Settings4.1 Enable Instant Notification System (INS)4.2 Merchant Code4.3 INS Secret Word4.4 Approved URL (Header Redirect)4.5 Demo Mode5 Course Configuration6 The User Experience7 FAQ7.1 Was this article helpful to you?
Who Should Use the 2Checkout Integration?
You should consider using the 2Checkout integration if:
✅ you』re looking for a quick & easy way to start selling courses
✅ you want to use the 2Checkout payment gateway
You might not want to use the 2Checkout integration 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
Sign Up for a 2Checkout Account
Navigate to 2checkout.com and follow the instructions for registering a new account
Once your account is set up, you can navigate to secure.2checkout.com to access your account settings, as well as the information you』ll need to set up the LearnDash integration
Install the 2Checkout Integration
Option 1: Add-ons Menu (requires an active LearnDash license)
In your WordPress admin area, navigate to LEARNDASH LMS > ADD-ONS
Locate the 2Checkout for LearnDash add-on
Click Install Now
Click the Activate Plugin button
Option 2: Manual Upload
Download the plugin file (must be logged in to download)
In WordPress, navigate to PLUGINS > ADD NEW
Click Upload Plugin
Browse for the .zip file you downloaded in Step 1
Click Install Now
Click Activate Plugin
2Checkout Settings
To finish setting up the integration, there are a few pieces of information you』ll need to provide to LearnDash. Let』s walk through each one, and show you where to find the information in your 2Checkout account.
All the information you need can be found in your 2Checkout Dashboard.
Enable Instant Notification System (INS)
In 2Checkout, navigate to Integrations > Webhooks & API
Scroll to the Instant Notification System (INS) section
Check the box to enable INS
Click Update
Merchant Code
To locate your merchant code in 2Checkout:
Still on the Integrations > Webhooks & API page
Under the API section, you』ll find your Merchant Code
INS Secret Word
To locate your INS secret word in 2Checkout:
Still on the Integrations > Webhooks & API page
Under the Secret Word section, you』ll find your INS secret word
Now you』ll switch over to your WordPress admin area to enter the information.
Navigate to LEARNDASH LMS > SETTINGS
Click the 2Checkout Settings tab at the top
Enter your merchant code & INS secret word from above
Approved URL (Header Redirect)
This one is a little different. You actually have to provide the approved URL to 2Checkout.
Copy the URL that is displayed in the box
Navigate your 2Checkout Dashboard
Go to the Integrations > Webhooks & API page
Find the Redirect URL section
Check the box to Enable return after sale
Paste the URL in the Approved URL box
In the Return Method dropdown, choose Header redirect
Click Update
Demo Mode
Enable demo mode if you』d like to perform a test transaction, without any money exchanging hands.
After you』ve confirmed everything is working properly, you』ll want to disable this to begin receiving actual payments on your live site.
Course Configuration
After you』ve configured your 2Checkout for LearnDash settings, the final thing you need to do is set up your course to accept payments.
In the WordPress admin area, navigate to LEARNDASH LMS > COURSES
Click on the course you』d like to sell with 2Checkout
Click on Settings at the top
Scroll down to Course Access Settings
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.
The User Experience
Now when a user navigates to your course page, and they click the 「Take this Course」 button, they will be redirected to 2Checkout to complete their purchase.
After payment is complete, a new user account is automatically created, and that user is enrolled into the course they just purchased.
FAQ
Does 2Checkout support payments in my country?
Please reference 2Checkout』s list of supported countries.
How do I issue refunds and/or cancel subscriptions for my customers?
Issuing refunds and canceling subscriptions is done from your 2Checkout account, not from LearnDash or this add-on.
Are users automatically removed from a course if they are issued a refund?
No. You can remove the course access from their profile.
Was this article helpful to you?
Yes
No