开发者

Synchronized Google checkout 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 u开发者_如何学运维rl. 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜