Probably you would want to have them register first and just mark the record as unpaid so they can't view restricted content. Then pass the userID from the login to paypal in a hidden field named "custom". Then you would have to create an IPN page that reads the incoming transactions from paypal and marks the record as paid based on the custom field which will be passed back to you.