tylerjrichards / st-paywall

A python package for creating subscription Streamlit apps
MIT License
266 stars 52 forks source link

subscription fix for cancelled subs #28

Closed tylerjrichards closed 1 year ago

tylerjrichards commented 1 year ago

It was kindly noted to be that this just grabs the customers, not the current subscribers to your Stripe account. So theoretically, someone could subscribe, and unsubscribe, and if they were still in the customers list, they would be able to keep access to the account. https://github.com/tylerjrichards/st-paywall/issues/27

This fix pulls the active subscriptions, then uses the customer api to find the associated email. Much better! It also fixes https://github.com/tylerjrichards/st-paywall/issues/25