I have a callback url that gets called, and I can process it. However – Google doesn’t process my acknowledgment. This is all in EnvironmentType.Sandbox. In the Google checkout “Integration Console” I get the following message: We encountered an error processing your notification acknowledgment. The error we got is: Error parsing notification acknowledgment. And the [...]

Autor:

I have a callback url that gets called, and I can process it. However – Google doesn’t process my acknowledgment. This is all in EnvironmentType.Sandbox.

In the Google checkout “Integration Console” I get the following message:

We encountered an error processing your notification acknowledgment.
The error we got is: Error parsing notification acknowledgment.

And the details are:
What they sent me: serial-number=....

What they received:

<?xml version="1.0" encoding="utf-8"?>
<notification-acknowledgment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" serial-number="here is the same serial number they sent me" xmlns="http://checkout.google.com/schema/2" />

<!DOCTYPE html...

The code I’m using:

GCheckout.AutoGen.NotificationAcknowledgment response = new GCheckout.AutoGen.NotificationAcknowledgment();
response.serialnumber = serialNumber;
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.BinaryWrite(GCheckout.Util.EncodeHelper.Serialize(response));
HttpContext.Current.Response.StatusCode = 200;

What’s the mistake here?

Related posts:

  1. Google Checkout Notification Acknowledgement (C# ASP.NET MVC)
  2. How can I create an http response from scratch?
  3. Google Checkout Notification API Using ASP.Net
  4. Error parsing notification acknowledgment – Google checkout
  5. Error parsing notification acknowledgment – Google checkout

Comments on this entry (no comments)

Did you like this post? You can share your opinion with us! Simply click here.

Add Your Comment