Hello, How can I add code to when a recurring payment has been completed successfully. I only want the code to execute on the second or later payment. Thanks.
So you want a specific action to occur only on the 2nd payment of a specific product? You will need a custom build plugin for this. David
I am actually looking for the event that I should call from inside the plugin I am designing. Not all of aMember's events are documented, and even less with regards to interfacing with payments. If anyone could provide this information, that would be fantastic. Thanks.
You can find the plugin hooks in the amember\plugins.inc.php plugin_finish_waiting_payment is typically the hook I use. For your situation, plugin_subscription_updated might do the trick, but you would need to test it since I'm not sure if that is triggered on an update to an existing subscription or on renewal.