I'm trying to add a custom function that is triggered when an admin user sets a User Invoice as 'Manually Paid', which hook can I use to do this?
I tried that, the problem I have is that I need the expression engine user id to use in this function, but it is not available at this point as the user hasn't been added to EE. Can you tell me when does the EE member entry get created for new users? And what hook can I use that occurs after this has happened?
All integration plugins uses the following hook to sync users with 3rd part databases. PHP: Am_Event::SUBSCRIPTION_CHANGED You can use same hook in site.php
Thanks! Can you tell me how I access the product id in the event data please? I use $event->getProduct()->getProductID() in another event, but that's not available in this event.
This event triggered once for multiple changes. So I recommend you to check current user active products the following way PHP: $event->getUser()->getActiveProductIds();