Lock Courses Until Customers Pays

I created an app utilizing glide sheets that sells courses and products. The courses are currently unlocked. How do I do the following:

  1. Lock the course until a new user pays for it
  2. Unlock the course automatically once a customer pays for it



This video is so HELPFUL !!!

Thanks I will check this out