我需要捕获服务器端的用户付款通知。我已经阅读了大部分文档,但没有遇到什么问题,但我会再看一遍。有没有办法在他们完成订单后启用“返回站点”?
发布于 2011-01-14 07:55:18
我搜索了google checkout return url,找到了http://www.phpexpertsforum.com/return-url-in-google-checkout-after-payment-t561.html
veerlapallavi写道...
有两种方法可以提供返回的URL。1)转到您的Google结帐帐户并打开设置。在settings>>Profile中,您可以找到一个名为"Public business URL:“的字段,在那里提供您的返回URL。
2)第二种方法是,您可以将该值传递给Google Checkout,并将HTML表单作为隐藏变量。
<input name="continue_shopping_url" type="hidden" value="http://www.yousite.com/payment_success.php">
或
如下所示设置函数SetContinueShoppingUrl("http://www.yousite.com/payment_success.php");function SetContinueShoppingUrl($url) {$this->continue_SetContinueShoppingUrl_url= $url;}
希望这能有所帮助。
看起来您可以将gcheckout配置为向您发送XML通知,但我不知道如何将它与匹配字段或其他内容之外的特定订单ID关联起来……
http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html#new_order_notifications
https://stackoverflow.com/questions/4686188
复制相似问题