Forgetting about the second part of my question for the moment - I think I've located a good hook to use for my purposes - ws_plugin__s2member_after_paypal_notify - but I'm not having much success with it (from what I've read on other forum posts, it could be because the member isn't currently loggedin when it fires).
To explain what I'm trying to do a little further - I'm running a token system on my site, and the memberships I sell signify a set number of tokens available to the member monthly (ie. lvl1=10 tokens, lvl2=20 tokens etc.).
As things stand, I'm manually adding these tokens as WP user meta values once a member signs up at a given level, but ideally I'd like to hook into s2member so I can automatically assign the tokens to a member once they've paid (on both their initial payment and on subsequent recurring payments).
Am I on the right track here with the hook I'm looking at, and is it possible to get the userid associated with the paypal payment notification somehow, instead of relying on the loggedin user (which couldn't really work for recurring payments anyway lol).
Thanks again for your help!Statistics: Posted by ETSol — January 28th, 2012, 1:50 pm
]]>