如何将 Google Checkout 与 Google AppEngine Java 结合使用
我有一个 AppEngine 应用程序。我想为其添加一个支付系统,而 Google Checkout 似乎是自然的选择。
这应该很简单吧?谷歌应该希望我们使用他们的结帐,并提供方便的罐子和示例代码。但经过半小时的网络搜索后,我发现最接近的是如何将 PayPal 与 appengine 结合使用。
谁能给我指点教程或其他文档?
或者 PayPal 是更好的选择吗?
I have an AppEngine app. I'd like to add a payment system to it, and Google Checkout would seem the natural choice.
This should be simple, right? Google should want us to use their checkout, and provide handy jars and sample code. But after half an hour of web searching, the closest thing I found was how to use PayPal with appengine.
Can anyone point me to a tutorial or other documentation?
Or is PayPal the better option?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够找到 http://code.google.com/p/google -checkout-java-sdk/ 看起来应该与 GAE 一起使用。该文档非常糟糕,而且似乎没有很多示例。快速浏览一下源代码,一切似乎都以 com.google.checkout.sdk.commands.ApiContext 类为中心。您只需创建一个新实例,然后即可将 EnvironmentInterface.CommandType 和您喜欢的数据模型传递给 postCommand 方法。例如,您将为新订单传递一个 EnvironmentInterface.CommandType.CART_POST 和 com.google.checkout.sdk.domain.ShoppingCart 实例。
I was able to find http://code.google.com/p/google-checkout-java-sdk/ which looks like is should work with GAE. The documentation is pretty poor and they don't seem to have many examples. From a quick glance at the source code everything seems to center around the com.google.checkout.sdk.commands.ApiContext class. You simply create a new instance and then you can pass in EnvironmentInterface.CommandType and the data model you like to the postCommand method. For example you would pass a EnvironmentInterface.CommandType.CART_POST and a com.google.checkout.sdk.domain.ShoppingCart instance for new orders.