status field of "invoice" table

Discussion in 'Customization & add-ons' started by chungtn2910, Jun 4, 2014.

  1. chungtn2910

    chungtn2910 New Member

    Joined:
    Mar 6, 2014
    Messages:
    3
    Hi,
    i open the _invoice table in amember DB.
    I see the "status" field.
    Could you tell me the value and the value meaning of this field
    like :
    0 : pending
    1: paid
    .....
    I need the value of all status: paid, rebill, refund,... for some custom code.
    thanks
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    Here is list of statuses:
    PENDING = 0; // pending, not processed yet - initial status
    PAID = 1; // paid and not-recurring
    RECURRING_ACTIVE=2; // active recurring - there will be rebills, access open
    RECURRING_CANCELLED=3; // recurring cancelled, access is open until paid
    RECURRING_FAILED=4; // rebilling failed, access is closed
    RECURRING_FINISHED=5; // rebilling finished, no access anymore
    CHARGEBACK=7; // chargeback processed, no access
    NOT_CONFIRMED = 8;

Share This Page