You would have to create an IPN page (https://developer.paypal.com/docs/api-basics/notifications/ipn/)
You would use IPN to update their profile to update a column to identify them as having paid. Then save that column value in the login so you can use it to restrict access to the pages.