{"id":618,"date":"2019-03-09T09:29:39","date_gmt":"2019-03-09T14:29:39","guid":{"rendered":"https:\/\/learndash.com\/support\/docs\/documentation\/add-ons\/2checkout\/"},"modified":"2025-01-10T09:08:52","modified_gmt":"2025-01-10T14:08:52","password":"","slug":"2checkout","status":"publish","type":"docs","link":"https:\/\/learndash.com\/support\/kb\/add-ons\/2checkout-add-on\/2checkout\/","title":{"rendered":"2Checkout Integration"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p class=\"note has-theme-palette-7-background-color has-background\"><strong>NOTE<\/strong>: You will need to register for a <a href=\"https:\/\/www.2checkout.com\/\" rel=\"\">free 2Checkout account<\/a> before you can use this integration.<\/p>\n\n\n\n<p>The 2Checkout integration will allow you to sell courses, but it doesn&#8217;t come with a lot of flexibility. If you&#8217;re looking for more robust member management, a customizable checkout experience or integrations with other WordPress plugins or services, check out our <a href=\"https:\/\/account.learndash.com\/plugins\/\" target=\"_blank\" rel=\"noreferrer noopener\">ecommerce and membership add-ons<\/a>.<\/p>\n\n\n\n<p>For other simple ways to accept payments, consider our <a href=\"https:\/\/learndash.com\/support\/docs\/documentation\/settings\/paypal-settings\/\">built-in PayPal integration<\/a> or the free <a href=\"https:\/\/learndash.com\/support\/docs\/add-ons\/stripe\/\">Stripe add-on<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-who-should-use-the-2checkout-integration\">Who Should Use the 2Checkout Integration?<\/h2>\n\n\n\n<p>You should consider using the 2Checkout integration if:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You&#8217;re looking for a quick and easy way to start selling courses<\/li>\n\n\n\n<li>You want to use the 2Checkout payment gateway<\/li>\n<\/ul>\n\n\n\n<p>You might not want to use the 2Checkout integration if:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You want to customize the user&#8217;s checkout experience<\/li>\n\n\n\n<li>You are creating a fully functional membership site<\/li>\n\n\n\n<li>You&#8217;re selling other products in addition to courses<\/li>\n\n\n\n<li>You want to closely manage the account creation and login process<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-sign-up-for-a-2checkout-account\">Sign Up for a 2Checkout Account<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <a href=\"https:\/\/www.2checkout.com\/\" rel=\"nofollow\">2checkout.com<\/a> and follow the instructions for registering a new account<\/li>\n\n\n\n<li>Once your account is set up, you can navigate to <a href=\"https:\/\/secure.2checkout.com\/cpanel\" rel=\"nofollow\">secure.2checkout.com<\/a> to access your account settings, as well as the information you&#8217;ll need to set up the LearnDash integration<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-install-the-2checkout-integration\">Install the 2Checkout Integration<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-option-1-add-ons-menu-requires-an-active-learndash-license\"><strong>Option 1: Add-ons Menu<em>(requires an active LearnDash license)<\/em><\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In your WordPress admin area, navigate to LearnDash LMS &gt; Add-Ons<\/li>\n\n\n\n<li>Locate the 2Checkout for LearnDash add-on<\/li>\n\n\n\n<li>Click Install Now<\/li>\n\n\n\n<li>Click the Activate Plugin button<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"530\" src=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/learndash-2checkout-plugin-card.jpg\" alt=\"LearnDash 2Checkout plugin card\" class=\"wp-image-1441\" srcset=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/learndash-2checkout-plugin-card.jpg 978w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/learndash-2checkout-plugin-card-400x217.jpg 400w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/learndash-2checkout-plugin-card-768x416.jpg 768w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/learndash-2checkout-plugin-card-800x434.jpg 800w\" sizes=\"auto, (max-width: 978px) 100vw, 978px\" \/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-option-2-manual-upload\"><strong>Option 2: Manual Upload<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.learndash.com\/download\/18010\/\">Download the plugin <\/a><a href=\"https:\/\/account.learndash.com\/plugins\/\" target=\"_blank\" rel=\"noreferrer noopener\">file<\/a> (must be <a href=\"https:\/\/support.learndash.com\/\">logged<\/a><a href=\"https:\/\/account.learndash.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"> in<\/a> to download)<\/li>\n\n\n\n<li>In WordPress, navigate to Plugins &gt; Add New<\/li>\n\n\n\n<li>Click Upload Plugin<\/li>\n\n\n\n<li>Browse for the <code><strong>.zip<\/strong><\/code> file you downloaded in Step 1<\/li>\n\n\n\n<li>Click Install Now<\/li>\n\n\n\n<li>Click Activate Plugin<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-2checkout-settings\">2Checkout Settings<\/h2>\n\n\n\n<p>To finish setting up the integration, there are a few pieces of information you&#8217;ll need to provide to LearnDash. Let&#8217;s walk through each one, and show you where to find the information in your 2Checkout account.<\/p>\n\n\n\n<p>All the information you need can be found in your <a href=\"https:\/\/secure.2checkout.com\/cpanel\" rel=\"nofollow\">2Checkout Dashboard<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-enable-instant-notification-system-ins\">Enable Instant Notification System (INS)<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In 2Checkout, navigate to Integrations &gt; Webhooks &amp; API<\/li>\n\n\n\n<li>Scroll to the Instant Notification System (INS) section<\/li>\n\n\n\n<li>Check the box to enable INS<\/li>\n\n\n\n<li>Click Update<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1746\" height=\"706\" src=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-enable-ins.jpg\" alt=\"Enable INS in 2Checkout\" class=\"wp-image-1546\" srcset=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-enable-ins.jpg 1746w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-enable-ins-400x162.jpg 400w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-enable-ins-768x311.jpg 768w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-enable-ins-800x323.jpg 800w\" sizes=\"auto, (max-width: 1746px) 100vw, 1746px\" \/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-merchant-code\">Merchant Code<\/h3>\n\n\n\n<p>To locate your merchant code in 2Checkout:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Still on the Integrations &gt; Webhooks &amp; API page<\/li>\n\n\n\n<li>Under the API section, you&#8217;ll find your Merchant Code<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1942\" height=\"1112\" src=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-merchant-code.jpg\" alt=\"2Checkout Merchant Code in dashboard\" class=\"wp-image-1545\" srcset=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-merchant-code.jpg 1942w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-merchant-code-400x229.jpg 400w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-merchant-code-768x440.jpg 768w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-merchant-code-800x458.jpg 800w\" sizes=\"auto, (max-width: 1942px) 100vw, 1942px\" \/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ins-secret-word\">INS Secret Word<\/h3>\n\n\n\n<p>To locate your INS secret word in 2Checkout:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Still on the Integrations &gt; Webhooks &amp; API page<\/li>\n\n\n\n<li>Under the Secret Word section, you&#8217;ll find your INS secret word<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1570\" height=\"1016\" src=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-secret-word-ins.jpg\" alt=\"2Checkout INS secret word\" class=\"wp-image-1547\" srcset=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-secret-word-ins.jpg 1570w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-secret-word-ins-400x259.jpg 400w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-secret-word-ins-768x497.jpg 768w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-secret-word-ins-800x518.jpg 800w\" sizes=\"auto, (max-width: 1570px) 100vw, 1570px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Now you&#8217;ll switch over to your WordPress admin area to enter the information.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to LearnDash LMS &gt; Settings<\/li>\n\n\n\n<li>Click the 2Checkout Settings tab at the top<\/li>\n\n\n\n<li>Enter your merchant code and INS secret word from above<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-approved-url-header-redirect\">Approved URL (Header Redirect)<\/h3>\n\n\n\n<p>This one is a little different. You actually have to provide the approved URL to 2Checkout.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2388\" height=\"922\" src=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-redirect-url.jpg\" alt=\"2Checkout URL redirect\" class=\"wp-image-1549\" srcset=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-redirect-url.jpg 2388w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-redirect-url-400x154.jpg 400w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-redirect-url-768x297.jpg 768w, https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/2checkout-redirect-url-800x309.jpg 800w\" sizes=\"auto, (max-width: 2388px) 100vw, 2388px\" \/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Copy the URL that is displayed in the box<\/li>\n\n\n\n<li>Navigate your <a href=\"https:\/\/secure.2checkout.com\/cpanel\" rel=\"nofollow\">2Checkout Dashboard<\/a><\/li>\n\n\n\n<li>Go to the Integrations &gt; Webhooks &amp; API page<\/li>\n\n\n\n<li>Find the Redirect URL section<\/li>\n\n\n\n<li>Check the box to Enable return after sale<\/li>\n\n\n\n<li>Paste the URL in the Approved URL box<\/li>\n\n\n\n<li>In the Return Method<strong> <\/strong>dropdown, choose Header redirect<\/li>\n\n\n\n<li>Click Update<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-demo-mode\">Demo Mode<\/h3>\n\n\n\n<p>Enable demo mode if you&#8217;d like to perform a test transaction, without any money exchanging hands.<\/p>\n\n\n\n<p>After you&#8217;ve confirmed everything is working properly, you&#8217;ll want to disable this to begin receiving actual payments on your live site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-course-configuration\">Course Configuration<\/h2>\n\n\n\n<p>After you&#8217;ve configured your 2Checkout for LearnDash settings, the final thing you need to do is set up your course to accept payments.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the WordPress admin area, navigate to LearnDash LMS &gt; Courses<\/li>\n\n\n\n<li>Click on the course you&#8217;d like to sell with 2Checkout<\/li>\n\n\n\n<li>Click on Settings at the top<\/li>\n\n\n\n<li>Scroll down to Course Access Settings<\/li>\n\n\n\n<li>Set the &#8220;Access Mode&#8221; to one of two values:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Buy Now:<\/strong> Use &#8220;Buy Now&#8221; for one-time payments<\/li>\n\n\n\n<li><strong>Recurring:<\/strong> Use &#8220;Recurring&#8221; if you&#8217;d like to set up a recurring payment or subscription<\/li>\n<\/ul>\n\n\n\n<p>And finally, enter your price in the Course Price field. Ex: <code>29.99<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The currency symbol will be added automatically for you<\/li>\n\n\n\n<li>If your price is an even dollar amount, you may omit the decimal point and cents (for example: <code>29<\/code>)<\/li>\n<\/ul>\n\n\n\n<p>For recurring payments, you need to include the &#8220;Billing Cycle&#8221; in days, weeks, months or years.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"518\" src=\"https:\/\/learndash.com\/support\/wp-content\/uploads\/2019\/03\/learndash-buy-now-course-set-price-animation.gif\" alt=\"Setting price on Buy Now course in LearnDash\" class=\"wp-image-1688\"\/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-the-user-experience\">The User Experience<\/h2>\n\n\n\n<p>Now when a user navigates to your course page, and they click the &#8220;Take this Course&#8221; button, they will be redirected to 2Checkout to complete their purchase.<\/p>\n\n\n\n<p>After payment is complete, a new user account is automatically created, and that user is enrolled into the course they just purchased.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faq\">FAQ<\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1736518055664\"><strong class=\"schema-faq-question\"><strong>Does 2Checkout support payments in my country?<\/strong><br\/><\/strong> <p class=\"schema-faq-answer\">Please reference <a href=\"https:\/\/www.2checkout.com\/global-payments\/\">2Checkout&#8217;s list of supported countries<\/a>.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1736518081781\"><strong class=\"schema-faq-question\"><strong>How do I issue refunds and\/or cancel subscriptions for my customers?<br\/><\/strong><\/strong> <p class=\"schema-faq-answer\">Issuing refunds and canceling subscriptions is done from your 2Checkout account, not from LearnDash or this add-on.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1736518094838\"><strong class=\"schema-faq-question\"><strong>Are users automatically removed from a course if they are issued a refund?<\/strong><br\/><\/strong> <p class=\"schema-faq-answer\">No. You can <a href=\"https:\/\/learndash.com\/support\/docs\/users-groups\/user-management\/#user_enrolled_in_courses\">remove the course access from their profile<\/a>.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1736518110823\"><strong class=\"schema-faq-question\"><strong>Why is it showing two transactions on my records?<\/strong><\/strong> <p class=\"schema-faq-answer\">For LearnDash 4.5.0 or newer, there will be 2 transaction record per single transaction. This is normal and your user will not be charged twice for each transaction. See our explanation on this on our <a href=\"https:\/\/learndash.com\/support\/docs\/core\/settings\/payments\/\">Payment Transaction Records documentation.<\/a><\/p> <\/div> <\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"line-height:1.4\"><\/p>\n\n\n\n<p style=\"line-height:1.5\"><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n","protected":false},"author":59,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_helpful_status":1,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"doc_category":[189],"doc_tag":[],"knowledge_base":[166],"class_list":["post-618","docs","type-docs","status-publish","hentry","doc_category-2checkout-add-on","knowledge_base-add-ons"],"year_month":"2026-04","word_count":921,"total_views":"12288","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"display_name":"Matt Cromwell","author_link":"https:\/\/learndash.com\/support\/author\/mattc\/"},"doc_category_info":[{"term_name":"2Checkout Add-on","term_url":"https:\/\/learndash.com\/support\/kb\/add-ons\/2checkout-add-on\/"}],"doc_tag_info":[],"taxonomy_info":{"doc_category":[{"value":189,"label":"2Checkout Add-on"}],"knowledge_base":[{"value":166,"label":"Add-ons"}]},"featured_image_src_large":false,"comment_info":0,"knowledge_base_info":[{"term_name":"Add-ons","term_url":"https:\/\/learndash.com\/support\/kb\/add-ons\/","term_slug":"add-ons"}],"knowledge_base_slug":["add-ons"],"_links":{"self":[{"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/docs\/618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/users\/59"}],"replies":[{"embeddable":true,"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/comments?post=618"}],"version-history":[{"count":38,"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/docs\/618\/revisions"}],"predecessor-version":[{"id":9595,"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/docs\/618\/revisions\/9595"}],"wp:attachment":[{"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/doc_category?post=618"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/doc_tag?post=618"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/learndash.com\/support\/wp-json\/wp\/v2\/knowledge_base?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}