Ejemplo n.º 1
0
 public static void HandleChargeAmountNotification(GCheckout.AutoGen.ChargeAmountNotification chargenotification)
 {
     string googleOrderID = chargenotification.googleordernumber;
     Cart order = new Cart().GetByPayment(googleOrderID);
     if (order.getTotal() == chargenotification.totalchargeamount.Value) {
         order.UpdatePayment("Complete");
         order.SendConfirmation();
         EDI edi = new EDI();
         edi.CreatePurchaseOrder(order.ID);
     }
 }