C # ASP.NET Google Checkout Notification Confirmation

I worked on this for a while and simply could not get Google to admit that I did what they want, so they continue to send me notifications for the same order. Documentation on this subject is available here:

Google Notification Verification Documentation

Here is my code on a page that gets Google distorted:

 string serial = Request["serial-number"];

 // do my stuff

 StringBuilder responseXml = new StringBuilder();
 responseXml.Append("<?xml version='1.0' encoding='UTF-8'?>");
 responseXml.Append("<notifiation-acknowledgment xmlns=\"http://checkout.google.com/schema/2/\" serial-number=\"");
 responseXml.Append(Request["serial-number"]);
 responseXml.Append("\" />");

 HttpResponse response = HttpContext.Current.Response;
 response.StatusCode = 200;
 response.ContentType = "text/xml";
 response.Write(responseXml.ToString());
+5
source share
1 answer

You have declined a “confirmation notification” as a “notification notification."

GCheckout, briercan . , :

var ack = new GCheckout.AutoGen.NotificationAcknowledgment();
ack.serialnumber = serial;
Response.BinaryWrite(GCheckout.Util.EncodeHelper.Serialize(ack));
Response.StatusCode = 200;
+4

All Articles