使用 Google Checkout 时未收到响应
我是 Google Checkout 的新手,我给出了一些示例,但仍然存在一些问题。我能够创建抛出 HTML 和 XML 的订单,但我需要能够在我的系统中知道订单已付款。我尝试通知回调轮询,但我不确定如何将 Google 订单与系统中的订单关联起来。我检查了响应 XML,但没有找到任何方法来发布我的 ID 并将其取回。有商家私人数据,但我没有收回价值。谁能帮助我吗?
I'm new to Google Checkout, I went throw the examples but still have some problems. I'm able to create the order throw HTML and XML, but I need to be able to know in my system that the order was paid. I try the notification callback an polling, but I'm not sure how can I link the Google order with my order in the system. I check the response XML but didn't found any way how to post my ID and get it back. There is merchant-private-data, but I'm not getting the value back. Can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 Google Checkout 提交订单时,请在您的系统中保留具有唯一订单 ID 的订单,该 ID 将作为商家私人数据发送给 Google。一旦谷歌处理订单,它将通过API回调URL通知响应。我们可以读取响应处理程序文件中的数据并相应地修改顺序。
When submitting orders using google checkout, keep an order in your system with unique order ID, this id is sent to google as merchant private data. Once google process the orders, it will notify the reposnse throught API call back URL. We can read the data in response handler file and modify the order accordingly.
谷歌有几个回应,其中包含各种订单状态。仅会收到初始响应的商家数据。响应中有唯一的谷歌订单号,也用于跟踪订单以供进一步参考。
There are a couple of response from Google with various order status. The merchant data will be received only initial responses. There is unique google order number in response, which also used to track order for further reference.
当您收到通知时,您应该能够读取商家私人数据。
请参阅此答案,它涉及类似的问题。
When you get back the notification, you should be able to read the merchant-private-data.
See this answer which touches on a similar issue.