Freemium streamlit app - how to approach

I’m interested in a simple user flow:

User can explore standard data analytics content. More advanced and premium content is available only after payment.

To gain access, users go into a payment page, with minimal integration cost, similar to stripe or similar.

Upon successful payment, user is sent an access token or similar, which allows it access to the premium content.

At a high level, how would you approach this flow, in particular the user access and verification piece?