Google checkout notification acknowledgment failing

后端 未结 2 2025
无人及你
无人及你 2021-01-26 12:47

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.

I

相关标签:
2条回答
  • 2021-01-26 12:49

    It seems this question is solved by an answer to another question of mine: How can I create an http response from scratch? .

    The solution is to add:

    HttpContext.Current.Response.End();
    
    0 讨论(0)
  • 2021-01-26 12:59

    See this "code behind" code from the .Net Library examples

    If you are using an aspx file, remove all the HTML content in it as shown in aspx source of the same example

    Response.End() will also work because it stops any further Reponse content from being returned (effectively does the same thing - prevents the HTML content in the Web Forms (aspx file) from being sent).

    You can also consider using a generic handler (ashx) instead of an aspx page for your callback url.

    0 讨论(0)
提交回复
热议问题