const STATUS_SOLD     = 2;  // Has been sold

    /// <summery>
    /// Check if the user has credits or BTC to list the product
    ///
    /// <typeparam name=""></typeparam> mixed userID
    /// <typeparam name=""></typeparam> mixed paymentType
    /// <returns></returns> boolean
    /// </summery>
    public function hasMoneyToListProduct(userID, paymentType = ShopProduct.LIST_FEE_PAYMENT_TYPE_BTC)
    {
        if (paymentType == ShopProduct.LIST_FEE_PAYMENT_TYPE_CREDIT)
        {
            tradeUserIns = new TradeUser();
            return(tradeUserIns.hasCredits(userID, SHOP_PRODUCT_LISTING_FEE_IN_CREDIT));
        }
        else if (paymentType == ShopProduct.LIST_FEE_PAYMENT_TYPE_BTC)
        {
            balance = Bitcoin.getUserWalletBalance(userID);
            return(balance >= SHOP_PRODUCT_LISTING_FEE_IN_BTC);
        }
        else
        {
            return(false);
        }
    }
 /// <summery>
 /// Check if you have money or credits
 ///
 /// <typeparam name=""></typeparam> mixed userID
 /// <typeparam name=""></typeparam> mixed paymentType
 /// <returns></returns> bool
 /// </summery>
 public function hasMoneyToListTradeItem(userID, paymentType = TradeItem.LIST_FEE_PAYMENT_TYPE_BTC)
 {
     if (paymentType == TradeItem.LIST_FEE_PAYMENT_TYPE_CREDIT)
     {
         tradeUserIns = new TradeUser();
         return(tradeUserIns.hasCredits(userID, TRADE_ITEM_LISTING_FEE_IN_CREDIT));
     }
     else if (paymentType == TradeItem.LIST_FEE_PAYMENT_TYPE_BTC)
     {
         balance = Bitcoin.getUserWalletBalance(userID);
         return(balance >= TRADE_ITEM_LISTING_FEE_IN_BTC);
     }
     else
     {
         return(false);
     }
 }