public static void HandleNewOrderNotification(GCheckout.AutoGen.NewOrderNotification neworder)
 {
     string googleOrderID = neworder.googleordernumber;
     int orderID = 0;
     System.Xml.XmlNode[] privateData = neworder.shoppingcart.merchantprivatedata.Any;
     EcommercePlatformDataContext db = new EcommercePlatformDataContext();
     try {
         orderID = Convert.ToInt32(privateData.Where(x => x.Name.ToLower().Equals("ordernumber")).Select(x => x.InnerText).First());
     } catch { };
     Cart order = new Cart().Get(orderID);
     order.UpdatePaymentConfirmationCode(googleOrderID);
     order.UpdatePayment(neworder.financialorderstate.ToString());
 }