tylerjrichards / st-paywall

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

"is_subscriber" doesn't update after user made payment #48

Closed michelle-w-br closed 9 months ago

michelle-w-br commented 9 months ago

the variable "is_subscriber" isn't updated after user made payment through stripe, the streamlit app shows "Login with Google" again after user made payment. Anyone else experience the same issue?

michelle-w-br commented 9 months ago

seems by nature it was not updated automatically

sfc-gh-trichards commented 9 months ago

Hey @michelle-w-br what do you mean? is there a way you'd like it work differently?

michelle-w-br commented 9 months ago

I am thinking if it is possible that streamlit will be notified automatically after user made payment. Does the user need to fresh the app page and login again in order to detect if the user has made payment?

sfc-gh-trichards commented 9 months ago

oh yes, there is no way for streamlit to "know" that the user has subscribed, we have to make a new api call to Stripe so they'll need to refresh