通过Google Checkout付费后如何返回我的网站?

ruanchao 2007-12-10 03:21:44
我在我的网站点击Google Checkout按钮后进入Google Checkout付费,付完费后,我该如何返回我的网站呢?

请不吝赐教?

我用的是PHP 5.0。
...全文
608 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
ruanchao 2008-11-18
  • 打赏
  • 举报
回复
这(1) 和(2)是同一问题的两个步骤, 你仔细看一下每种方法下面的英文解释

你也在做Google Checkout的付费方式吗?俺好久没有做了啊
jessieca 2008-11-18
  • 打赏
  • 举报
回复
2) <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://www.example.com/continue ">

我尝试了此方法,貌似不行啊,是不是和form的action链接有关系,没有匹配?


<form action="https://checkout.google.com/cws/v2/Merchant/<?php echo $merchant_id; ?>/checkout" method="post">
<input type="hidden" name="cart" value="<?php echo base64_encode($GCheckout->getCart());?>">
<input type="hidden" name="signature" value="<?php echo base64_encode($GCheckout->getSignature($GCheckout->getCart()));?>">
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://www.michaelroland.com">
<input type="image" name="Google Checkout" alt="Fast checkout through Google" src="http://checkout.google.com/buttons/checkout.gif?merchant_id=<?php echo $merchant_id;?>&w=180&h=46
&style=white&variant=text&loc=en_US" height="46" width="180">
</form>
dkcool 2007-12-12
  • 打赏
  • 举报
回复
1) <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.edit-cart-url" value="http://www.example.com/edit ">

by passing this field you can give link to edit your cart before checkout.

2) <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://www.example.com/continue ">

with this you can give link to your site after the transaction irrespectively of transaction result.
ruanchao 2007-12-11
  • 打赏
  • 举报
回复
呵呵,怎么没人来发表你的高见呢?

作为卖家我如何设置 API return URL呢?上面的问题可能与这个有关,不过目前还不确定。

请同仁看一下哈!
ruanchao 2007-12-11
  • 打赏
  • 举报
回复
自问自答,好不尴尬!
ruanchao 2007-12-11
  • 打赏
  • 举报
回复
with xml you send these variables:

edit-cart-url
continue-shopping-url

and you can't get the people back to your site automatically after a
transaction... google just puts a little tiny link on the order
complete page that if you're lucky the customer will click on and
return to your site .
==================================================================================================
Hi Fididel,

Here its not possible to redirect automatically after the transaction from google checkout site, Even its successful or unsuccessful transaction, But speciality with this google checkout site is that there itself the buyer will come to know that the transaction is successful or unsuccessful, From google checkout site you can provide two links from those you can redirect to your site.

1) <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.edit-cart-url" value="http://www.example.com/edit ">

by passing this field you can give link to edit your cart before checkout.

2)<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://www.example.com/continue ">

with this you can give link to your site after the transaction irrespectively of transaction result.

regards
Vinayaka K

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧