Save customer data to my own database on payments

Discussion in 'Customization & add-ons' started by thoefter, Sep 5, 2010.

  1. thoefter

    thoefter New Member

    Joined:
    Sep 4, 2010
    Messages:
    9
    I am currently looking into switching to amember, however I would need to keep one of my own customer tables which I use for invoice scripts and so on.

    Thus, whenever a customer pays and signs up through amember I want to add him to that particular db table.

    I already found this: http://manual.amember.com/Using_site.inc.php_and_hooks#finish_waiting_payment.28.24payment_id.29

    Is the finish_waiting_payment($payment_id) the correct function I need to use for what I want, i.e. is it run every time a payment is processed?

    Can I access the Paypal IPN variable data inside the function example?

    And finally, is the structure of the $payment variable (from the example) documented anywhere or could someone who knows share it? For testing that myself I would need a separate Paypal account to buy from myself I guess which I don't have at the moment.

    Thanks for any help!

Share This Page