How to integrate Moodle with 2Checkout

Standard Checkout
Process credit cards for your store using 2Checkout's Hosted Checkout.
Inline Checkout
Streamline your payment process by using 2Checkout's Inline Checkout.
Payment API
Recurring Payments
Plugin Required

Moodle Settings

  1. Download or clone the 2Checkout payment module at
  2. Upload the ‘twocheckout’ directory to “/your-moodle-directory/enrol/” on your web server.
  3. In your Moodle admin select Notifications and when prompted, install the twocheckout module.
  4. Under Plugins, Enrollments select Manage enrol plugins, enable 2Checkout and then click the Settings link for 2Checkout.
  5. Enter your 2Checkout Account Number.
  6. Enter your 2Checkout Secret Word. (Must be the same value entered on your 2Checkout Site Management page)
  7. Select Yes under Allow 2Checkout enrollments
  8. Enter the default enrol cost. (This can also be set as the course level)
  9. Select your default enrol assignment.
  10. Enter your desired enrollment duration.
  11. Click Save Changes.

2Checkout Settings:

In the IntegrationsWebhooks & API section in the cPanel, you will find all the necessary tools to connect your third-party store creators to your 2checkout account. From this centralized integrations section you will be able to:

  1. Set up INS/LCN/IPN (found on other third-party store creators as Global URL)
  2. Have access to your Merchant code (also referred to as Seller ID, Account ID, Merchant ID)
  3. Add Return URL with header redirect or link in Thank you page (also referred to as Return link, Approved URL, Thank you link, Given links back to my website)
  4. Generate a Buy link secret word (also referred to as Secret word, Secret Key)
  5. Generate private API keys, or use any API information required for your authentication

Please Note: This module integrates with the latest Moodle version 2.4.x. If you are using Moodle 1.8 or 1.9 and are not able to upgrade to the latest version, please use the following plugin.

For more information visit:

About Moodle

Moodle is an Open Source Course Management System (CMS), also known as a Learning Management System (LMS) or a Virtual Learning Environment (VLE). It has become very popular among educators around the world as a tool for creating online dynamic web sites for their students. To work, it needs to be installed on a web server somewhere, either on one of your own computers or one at a web hosting company.

Simplify the eCommerce process. Try 2Checkout.
The most flexible digital commerce platform that can give your business a real boost.