Gated content with Stripe

Generally, you can use this approach Advice on Password protected page access

For your case, add a field (yes/no or subscription type) in the relevant datatype. When the user subscribes, change the field from default to paid and navigate the user. On the premium page, hide the main group if the current user sub is not paid and make visible some sort of popup to displaying something like. this page is for premium users.