Your Uncommonly Amazing WordPress Tech Partner

Removing Teachable access based on Stripe subscriptions

teachable stripe

Introduction

WordPress can get complicated if you're using it to sell and deliver your online course.

For that reason, you may have decided to use Teachable instead. And for payment processing, you're probably using Stripe in conjunction with Clickfunnels or some other 3rd party shopping cart platform.

There's just one problem: how do you cancel a member's access automatically when they cancel their subscription or ask for a refund?

We can do that using Zapier and Stripe Webhooks in a ‘custom Zap'!

Setup steps

There are four main steps to this process:

A) Set up the first step of the Zap

B) Create the Stripe Webhook

C) Trigger an event for the Webhook

D) Complete the last step of the Zap

Set up the first step of the Zap

1 – First of all we need a Zapier account.

You can either make your own account or we can host you Zap for you for a $3/month fee.

 

If you're a customer past or present, we can host zaps for you for only $3/mo. We can even set up a zap for you on our MemberFix Lite plan. Zapier accounts start at $25/mo, so save yourself some money, and have us take care of everything for you!

2 – When you are logged into Zapier you need to press “Make a Zap!”

step in Zapier

 

3 – When the search input shows up, you need to type in “Webhooks” and then click on “Webhooks by Zapier”.

step in Zapier

 

4 – We need to select “Catch Hook”

step in Zapier

 

5 – Now you should see your webhook link. Copy that link to your clipboard. 

step in Zapier

Create the Stripe Webhook

1 – Inside your Stripe dashboard you have to click “Developers”

step in Stripe

 

2 – When the menu opens, click on “Webhooks”.

step in Stripe

 

3 – Now add the endpoint for your webhook.

step in Stripe

 

4 – Now add the link that you have copied and also the events.

step in Stripe

Note: Please pay attention to the events!

The correct events in this case are “charge.refunded” and “customer.subscription.deleted“. These events represent refunds and cancellations, respectively.

Trigger an event for the webhook

Note: Here I can't really give you a guide.

You have to buy your subscription and then either refund yourself or cancel your subscription.

But I've added it as one of the higher steps because it's crucial for our task. Otherwise you won't have any data for Zapier to pull from the Webhook and you won't be able to finish your Zap.

Complete the last step of the Zap

1 – Add a new step to your Zap.

step in Zapier

 

2 – Pick “Action/Search” from the list.

step in Zapier

 

3 – In the search input type “Teachable”.

step in Zapier

4 – Select “show less common options”.

step in Zapier

5 – Select “Unenroll Student From Course”

step in Zapier

 

6 – Connect to your Teachable account

step in Zapier

 

After clicking that button you'll see a new browser window:

step in Zapier

Fill the form and hit “Yes, Continue”.

 

7 – After the connection click “Save & Continue”.

step in Zapier

 

8 – Before filling the Teachable user data form, let's find your user. To do that, click “Add a Search Step”.

step in Zapier

 

After pressing the button a pop-up should appear. There you will need to confirm that you want to add a new step to your Zap.

step in Zapier

 

9 – Now fill in the email field. Do that by pressing on the list button.

step in Zapier

 

10 – From the list select “Data Object Metadata Email”.

step in Zapier

11 – Hit “Save & Continue”.

12 – Get back to the 3rd step of the Zap and fill out the form by selecting the course that you want to remove the user from.

stripe in Zapier

13 – Activate your zap.

All done!

Now let's hear from you!

What kind of learning material are you selling with Teachable?

Tell us in the comments section below.

You may also enjoy...

WordPress based membership sites have certain requirements, and make use of certain applications that, in my experience, makes most of the popular hosting providers a poor choice.

Most coaching programs are built around content. Alexander Ford built his around access. The difference shows up in the structure. Ford runs Measurable Genius, a coaching practice founded on the

A botched MemberPress migration left WOWintl’s members double-charged and locked out, and 75 to 80% had never logged into the new site. We recovered it in 45 hours, and 18

Around 2010, Jennifer Crowley was heading to one of her kids’ events with wired earbuds in her ears, listening to a business podcast. The host said something simple: “Just write

2 Responses

  1. Hey Sorin, I came to this article while trying to configure Stripe as a Gateway to handle Teachable subscriptions.
    Do you know a way to configure a Zapier from Stripe to Teachable in order to automatically enroll a User into teachable when a specific Product on Stripe has been purchased?

    Thanks!

    1. Hi Simon,

      So you are trying to create users in Teachable based on Stripe purchases?

      To do that you have to configure Webhooks from Stripe to Zapier and then add the new user based on those webhooks.

      Please let me know if that answered your question.

      Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *