当我登录到我的商人帐户时,我可以在“设置”选项卡中设置回调URL。
问题是,如果没有HTTPS,唯一的选择就是将序列号发回回调URL。
回调目录: X通知序列号 例如序列号=123-456-7 通知为XML (需要HTTPS URL) 例如123. 通知为HTML (名称/值对)(需要HTTPS URL) 例如google-order-number=123&.
因此,从这个序列号,我的服务器端脚本是否有可能获得订单的状态?
我需要获得订单的付款状态(支付与否,支付金额)&订单编号被发送回我的(自定义)购物车,以便我可以更新我的数据库。
(我目前无法获得HTTPS,因为网站上的人不想得到它)
发布于 2012-06-04 13:20:43
我要提醒你的是你接受的答案。
continue_url不是“自动重定向”。您是完全依赖于用户的--实际上单击该链接而不是页面中的任何其他链接--特别是谷歌自己的链接可以访问用户的钱包页面,在该页面中,他/她可以访问所有他/她的订单。
因此,您可能没有在您自己的系统中拥有所有的命令,从而在冒险您的操作。continue_url链接--此外,你也打开了自己的大门,发现你正在跟踪的订单可能不是谷歌实际批准的,或者是没有通过货币/风险授权或检查的。
如果用户确实点击了你提供的链接,但谷歌在订单上有问题,那么你的系统就有“钱”在不应该的地方。- SSL is only required (**on your end**) if you opt for [XML/name-value (data) notification](https://developers.google.com/checkout/developer/Google_Checkout_XML_API_Notification_API_pre25)
- SSL is **not** required if you opt for serial number notification.
- XML/name-value notification is a "push" model - Google will "push" data to you. You will authenticate **Google's basic auth request** (which is why SSL is required).
- serial number notification is "pull" model - you will "pull" data from Google (given a serial number - and that is why SSL is not required **on your end** - you will authenticate your pull request and send your request with SSL). Google isn't sending you any data, just a serial number. You will use this serial number to obtain data associated with it and provide authentication to Google - **your request** will use SSL.
上面的链接应该会引导您完成文档/参考。如果你有问题,请在这里发表评论,或者在产品论坛上发布。
哈.
https://stackoverflow.com/questions/10869444
复制相似问题