Recurring Event

Discussion in 'Payments processing' started by aemulus, Mar 5, 2011.

  1. aemulus

    aemulus New Member

    Joined:
    Mar 1, 2008
    Messages:
    3
    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.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    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
  3. aemulus

    aemulus New Member

    Joined:
    Mar 1, 2008
    Messages:
    3
    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.
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    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.
  5. aemulus

    aemulus New Member

    Joined:
    Mar 1, 2008
    Messages:
    3
    Thank you again skippybosco :)

Share This Page