Skip to main content

Enable access behind a pay-wall using Lemon Squeezy

How to grant access to your collection after payment?

Onur Oz avatar
Written by Onur Oz
Updated over 3 weeks ago

You can easily start monetizing your know-how by setting up a payment gateway for your collection. Mini Course Generator makes this practical and quick with its direct integrations with the payment service providers Stripe, Lemon Squeezy and Pabbly. It is also possible to use payment service providers such as Paypal, Shopify and others through Zapier and Make integrations. Besides, all payments are directly transferred to your payment service providers immediately, with no commission cut by Mini Course Generator.

We’re going to use the Lemon Squeezy integration to set up a pay-wall for your collection in this article.


Setting up connections

  1. Set your Learners’ Access as “Enable access behind a pay-wall” and choose Lemon Squeezy as your payment processor.

    💬 This setting modifies access for all your mini-courses in the related collection. If you want to sell a single mini-course, you should create a new collection, move your mini-course to the new collection and then set up your pay-wall.

  2. Create your payment link on Lemon Squeezy and paste it to your Learners’ Access tab.

    💡If you have not created your product beforehand, you can create it with the purple "+" icon at the top right end of your dashboard. While creating your product, you can choose to be paid on subscription model or one time payment model.

  3. Copy the payment success URL and add it to your “After Payment” action in your payment link.

    🔹 Using our payment success page, your learners will be able to access your mini-courses seamlessly after payment.

  4. Add Webhook to Lemon Squeezy.

    • Copy the webhook URL from “Learners’ Access” tab. Go to “Settings” at the left end of your Lemon Squeezy dashboard. Go to “Webhooks”, click on “+” icon.

    • Paste the webhook URL to “Callback URL” section. Set the signing secret “123456”. Finally, add these updates below:

      order_created, order_refunded

      subscription_payment_failed, subscription_payment_success, subscription_payment_recovered, subscription_payment_refunded

    • After adding these updates, save your webhook. Go back to your Mini Course Generator dashboard and click on “Done”.

    👀 Correct events must be added to the webhook, otherwise your pay-wall may not work successfully.

  5. Finish setting up and test your pay-wall.

    Once you go back to your Mini Course Generator dashboard and click on done, your pay-wall is all set. To check whether everything is set correctly, it is possible to test the Lemon Squeezy pay-wall yourself on test mode.

    Find out details on Testing your Pay-Wall.

Track your Learners

Now that your learners have successfully paid for, accessed and enjoyed your collection, it’s time to track their progress. Analytics give information about which cards your learners completed, what answers they gave to questions and more.

The analytics tab of your collection allows you to see important data about your learners' journey specific to the collection. You can choose to see data for all mini-courses in the collection, or see data for each mini-course in the collection specifically.

You can download learner analytics for each mini course by clicking on “Analytics” button of your mini course on your admin dashboard or the “Report” button on top right corner of your mini course edit screen.

Discover our other gateways

Customize your share link

Did this answer your question?