同步 Google 结账 AJAX
有没有一种方法可以让我在处理订单时收到返回到我的网站的 ajax 请求,而不必刷新页面?我知道他们有回调网址或请求网址。但我正在尝试制作一个模块注册插件,在其中我可以让用户离开模块并付款,然后将他们支付的响应发送回模块。这可能吗?
Is there a way to make it so when the order is processed I get a ajax request back to my site and don't have to refresh the page? I know they have a call back url or a request url. But I'm trying to make a module registration plug-in in which I can have the user go away from the module and pay and then get sent back to the module with the response they paid. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用通知 API 处理订单后,您可以收到服务器回调:
http ://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html
关于您要实施的重定向,请记住,在线购买不是同步。下订单后会进行安全和信用检查,只有在这些检查通过后订单才会被接受。
You can get a callback to your server after the order is processed using the Notification API:
http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html
Regarding the redirect you want to implement, please keep in mind that an online purchase is not synchronous. There are security and credit checks that take place after the order is placed, and the order is accepted only after those checks pass.