Removing Teachable access based on Stripe subscriptions

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?