如何将 Google Checkout 中的订单信息添加到我的数据库中?

发布于 2024-10-18 10:10:22 字数 123 浏览 3 评论 0原文

我已经实现了 Google Checkout 沙箱来测试购买按钮,该按钮成功地允许用户下订单。我想使用 asp.net 将 Google Checkout 沙箱的订单添加到我的数据库中。

谁能告诉我如何实现这个场景?

I have implemented Google Checkout sandbox for testing buy button which successfully allows user to place their orders. I want to add order of Google Checkout sandbox to my database by using asp.net.

Can anyone tell me how can I implement this scenario?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

万劫不复 2024-10-25 10:10:22

Google Checkout 有多个接口。到目前为止,最简单的是“立即购买”按钮,这听起来像是您已经实现的。现在,该方法的局限性在于,它将一件商品放入 Google 的购物车中,然后交互就结束了。所以您需要在商家中心处理订单。对于处理少量订单的小型网站来说,非常简单。但听起来不像你想要的。另一方面,您可以使用 html 或 xml 界面创建自定义购物车。使用 xml 界面,您可以完全控制订单。然后,Google 会根据完整订单进行回调,将购物车发布回您的网站。极端地说,您几乎可以自动化在商家中心可以完成的几乎所有事情:取消订单、发放退款等。

这都是一个权衡集成工作与控制的问题。他们提供了许多不同的集成模式。开发者文档中有一个很好的比较。但是使用“立即购买”按钮,我不相信任何东西都会返回您的系统,而且听起来您希望订单详细信息返回您的系统/网站。您可能还想查看与 Google Checkout 集成的方法并选择集成对您来说最有意义的模式。

我没有 ASP.Net 代码可以提供给您,但我确信它是可行的,并且开发人员文档中有示例。

There are multiple interfaces to Google Checkout . By far the easiest is a buy now button, which is what it sounds like you've implemented. Now the limitation with that method is that it places one item into a cart at Google and that's the end of the interaction. So you need to process the order in the Merchant center. Nice and simple for small sites processing few orders. But doesn't sound like what you want. At the other end of the spectrum, you can do a custom cart using the html or xml interfaces. Using the xml interface, you have complete control of the order. Google will then do call backs on complete order to post the cart back to your site. Taken to the extreme, you can automate pretty much anything that could be done in the merchant center: canceling orders, issuing refunds, etc.

It's all a question of trading off integration effort with control. They offer a number of different integration patterns. There's a nice comparison on in the developer docs. But with the buy now buttons, I don't believe that anything ever comes back to your system, and it sounds like you want the order details back on your system/site. You may also want to take a look at Ways to integrate with Google Checkout and pick the integration pattern that makes the most sense for you.

I don't have ASP.Net code to hand you, but I'm sure it's doable and there are examples in the developer docs.

烟沫凡尘 2024-10-25 10:10:22

请参阅此网站以了解 Checkout 客户端库和客户端库。示例代码(包括 .NET 和经典 ASP):

http://code.google.com/ apis/checkout/samplecode.html

See this site for Checkout Client Libraries & Sample Code (including .NET and Classic ASP):

http://code.google.com/apis/checkout/samplecode.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文