C# example for Google Checkout replies? [duplicate]

喜你入骨 提交于 2019-12-01 11:01:26

问题


Possible Duplicate:
C# and Google Checkout - getting the reply back from the server?

Sorry for the re-post but this question seems to be a bit of a "white whale" for me. I simply can't find any C# examples of how to handle the transaction reply from Google Checkout:

Are there any tutorials out there on how to get the responses back from a Google Checkout transaction when using C# and the GCheckout API? All of the examples I could find were for previous versions of the API and not the current one (2.5). More specifically, I'd like to see an example reply of what Google will post back to me without an HTTPS connection. I know it's minimal data, but I'd still like to see an example of it and see how others are parsing it.


回答1:


I wanted this Google API version 2.5 .NET sample code for a long time and finally built it myself:

http://www.capprime.com/software_development_weblog/2010/11/29/UsingTheGoogleCheckout25APIWithASPNETMVCTheMissingSample.aspx

If you need classic WebForms instead of MVC, let me know.

I didn't include samples of what the packets look like, because honestly, it doesn't matter (the API is supposed to wrap the packets). It's not a lot of work to modify the sample in a couple of places and have it send you an e-mail with that data.



来源:https://stackoverflow.com/questions/3662394/c-sharp-example-for-google-checkout-replies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!