How to get invoice number and subscription ID ??

Discussion in 'aMember Pro v.4' started by robiko997, Feb 25, 2013.

  1. robiko997

    robiko997 New Member

    Joined:
    May 11, 2009
    Messages:
    13
    Hello

    if user is logged into protected content area in folder "protectedfolder/index.php" ..

    how to get invoice number and subscription ID for this currently logged user ??

    can someone help me with php code ? how to get these numbers...thank you.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
  3. robiko997

    robiko997 New Member

    Joined:
    May 11, 2009
    Messages:
    13
    I still dont know how to get it.. :(
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can use Am_Lite::getPayments() method.
    This will return array of user's payments. Then you can get payment's receipt ID and invoice ID from that array.

Share This Page