Paid plans with coding not working

Helps if you elaborate more and show any code used etc.

Have you set the page to members with paid plan only, have you checked in code that the member has the paid plan?