With Simplylearn you can receive payments through PayPal and Stripe. We would recommend at least adding Stripe as a payment solution as this allows your customers to pay by credit card. 


Setting up Stripe can be a complicated process. If you want us at Simplylearn to set this up for you, reach out to us. 


TABLE OF CONTENTS

Video tutorial




Preparation

If you don't have a Stripe account, navigate to stripe.com and follow the instructions for registering a new account. Once your account is set up, you can navigate to dashboard.stripe.com to access all of your account settings.


First off, you need to access the Stripe settings in your Simplylearn platform. Go to Simplylearn --> Settings --> Stripe settings. In this article, these settings are defined as the Simplylearn Stripe settings. 





In this article, we will explain the settings and instruct you on how to set Stripe up on your LMS.


1. Test Mode / Live Mode

There are two ways you can set up the LearnDash Stripe integration: test mode or live mode.


  • Test mode should be used when you’re still testing your site internally. No money will actually change hands, but Stripe will record if the transaction succeeded or failed.
  • Live mode should be used when you’re ready to launch your course. All transactions in this mode are real transactions, and money will exchange hands. Once you’ve launched your site, you should stay in live mode indefinitely.

There are two different sets of keys, depending on which mode you’re using. In your Stripe dashboard, you will get the option to choose if you want to view test or live data. 

2. Integration Type

There are two options for integration type: Legacy Checkout or Checkout (Support SCA).


Legacy Checkout captures customer payments in a light-box popup checkout form on your website.

Checkout (Support SCA) captures customer payments in a checkout form hosted on the Stripe website. This is to comply with the European PSD2 regulation.


3. Publishable/Secret Keys

You need to collect these keys from your Stripe account. 

  1. Go to dashboard.stripe.com and log into your account. 
  2. Locate the "Developers" menu, and then press "API Keys". In the section for "Standard Keys" you will then find a "Publishable Key" and a "Secret Key". You need both of these keys to set up your integration. 
  3. Paste these keys in your Simplylearn Stripe settings in the fields "Publishable" and "Secret" keys. 



4. Webhook URL & Endpoint Secret

You only need to care about webhooks and endpoints if you are using the Checkout (Support SCA) integration. 


ADD A STRIPE WEBHOOK


  1. Login to your Stripe account and navigate to https://dashboard.stripe.com/webhooks 
  2. Click the Add endpoint button
  3. Copy the auto-generated Webhook URL from your Stripe settings inside Simplylearn. 
  4. Back in Stripe, paste the Webhook URL you copied into the Endpoint URL field. 
  5. For Version, select the latest API version
  6. Under Events to send, enable ONLYthe following events:
    1. customer.subscription.deleted
    2. invoice.payment_failed
    3. invoice.payment_succeeded
    4. checkout.session.completed
  7. Click Add endpoint


INSERT THE ENDPOINT SECRET

Now that your new webhook is created and enabled, the last thing you need to do is to retrieve your Endpoint Secret so that you can add it to the Simplylearn-Stripe integration settings.


  1. Locate the Signing secret section in the webhook you just created and select Click to reveal
  2. Copy the secret key
  3. Paste in the signing secret into the Endpoint Secret field in your Simplylearn Stripe settings. 



5. Currency

You need to set the 3-letter ISO code for the currency you want to use.


For example:

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

See Stripe’s list of supported currencies & ISO codes here.


6. Payment Methods

By default, Credit Card is selected and is what most people will use.


There is also the option to accept iDEAL Payments instead, or to offer both options (Credit Card & iDEAL) upon checkout.


7. Return URL (optional)

If no return URL is provided, the user will remain on the course page after their transaction is processed.


But you can choose to send the user to a confirmation page instead. This can be a page you create on your site, with WordPress, a page builder, etc. Or even a page on a completely different domain. It’s entirely up to you.


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