Thomas, so you want to give someone access to a resource for 180 days after payment?
I guess there’d be a number of ways of doing that, depending on whether the resource is unique to the individual or not, and whether you want / mind other people being able to see it.
- Visible to others - You could create a table of join-date, leave-date that manipulated a user’s group or role memberships (although you’d need some form of cron job to run daily to update member group permissions - or possibly on web login a plugin could check which resources your user should still have access to).
- Unique to user - You could give the resource name an alias of the transaction id, and unpublish date as you’ve suggested. Or you could put the user id in a tv field and check that the user viewing the page is the user logged in.
- Another way - probably less desirable, is to set up the initial payment as a subscription with 0 repeats and period of 6 months, and add / leave groups based on the IPN.
- Finally, there’s probably a way to do it using User Extended Fields (if they’re going to have access to many specific resources that dont’ form part of a discrete resource group).
- I haven’t explored what the Filelister package does, but it may also cover some of this ground. (As may VisionCart).
- I used this as my starting point for processing IPNs
https://www.x.com/thread/30664?start=0&tstart=0
The email verification I’ve left in for the standard MODx account creation process - it just seemed a little bit safer to know that they will get a forgot login email.