public static String convertObjectToString(Order orderObj)
        {
            String encodedOrder;
            encodedOrder = orderObj.getSenderId() + "#" + orderObj.getCardNum().ToString() + "#" + orderObj.getNumOfChicken().ToString()+"#"+orderObj.getStartTime();
            
            return encodedOrder;            

        }
        public static void processOrder(Order decodedOrderObj,int chickenPrice)
        {
            if(validCardNumber(decodedOrderObj)) //validing the credit card number given by the retiler
            {

                int billingAmount=(decodedOrderObj.getNumOfChicken()*chickenPrice)*(1+(taxPercentage/100)+(shippingChargePercentage/100));
                decodedOrderObj.setEndTime(DateTime.Now.TimeOfDay);
                decodedOrderObj.message="       "+decodedOrderObj.getSenderId()+" is notified after processing order of "+decodedOrderObj.getNumOfChicken()+" chicken requested at "+decodedOrderObj.getStartTime()+" and  billing amount is $"+billingAmount+" now time is "+decodedOrderObj.getEndTime();

            }
            else
            {

                decodedOrderObj.message = "     " +decodedOrderObj.getSenderId() + " is notified after processing order of " + decodedOrderObj.getNumOfChicken() + " chicken requested at "+decodedOrderObj.getStartTime()+". This order is discarded because of invalid card number" + " now time is " + decodedOrderObj.getEndTime();

            }

            ChickenFarm.orderProcessReceipt(decodedOrderObj);
        }