I'm using Amember for selling a script that should cease to work (expire) when their membership expires. The theory is this: each member gets a unique number (8 digits) which they use to activate the script they purchase. The script queries amember occasionally to check member status using the unique number, and if their status has expired, it will cease to work. Can that be done? Has someone already done it? Any links to related info? Many thanks.
There is an XML RPC service built into aMember you can enable that would seem to serve this purpose. You would obviously need to encode the calls (zend, ioncube) so that folks could not just comment out the checks.
Thanks, I've got most of it sorted. I querying the amember DB directly, how can I tell whether a member has expired or not? Thanks.
easy - check the "status" column in the amember_members table for each user. 0 means pending, 1 means active, 2 means expired.