0

我需要在服务器端捕获用户付款的通知。我已经阅读了大部分文档,但没有运气,但会再次阅读。有没有办法在他们完成订单后启用“返回站点”?

4

1 回答 1

1

我搜索google checkout return url并得到了http://www.phpexpertsforum.com/return-url-in-google-checkout-after-payment-t561.html

维拉帕拉维写道……

您可以通过 2 种方法提供返回 URL。1) 转到您的 Google 结帐帐户并打开设置。在设置>>个人资料中,您可以找到名称为“公共企业网站:”的字段,在此处提供您的返回 URL。

2) 第二种方法是,您可以将 HTML 表单作为隐藏变量将值传递给 Google Checkout。

<input name="continue_shopping_url" type="hidden" value="http://www.yousite.com/payment_success.php">

或者

设置如下函数 SetContinueShoppingUrl("http://www.yousite.com/payment_success.php"); 功能 SetContinueShoppingUrl($url) { $this->continue_shopping_url = $url; }

希望有帮助。

看起来您可以将 gcheckout 配置为向您发送 XML 通知,但我看不出您如何将其与特定订单 ID 关联,而不是匹配字段或其他东西......

http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html#new_order_notifications

于 2011-01-13T23:55:17.500 回答