dongsheng9203 2010-08-15 16:44
浏览 37

谷歌结帐在续网址获取自定义变量

I am working with google checkout and currently working at sandbox environment. I have used Paypal and i thought google checkout should work like the same. but i wonder that google checkout is not posting back the HTML form field on return URL and im not able to find any proper solution for this problem yet. Here is my code.

here im using a custom field shopping-cart.merchant-private-data to get the data but i dont know how to collect that data on continue URL.

I just need to pass some ID in a custom field so that on return URL I can get it back and then change my database on the basis of this ID. There is one thing which is important that Upon return google checkout is destroying sessions also and there is no value stored in sessions. This made a big problem for me. So please tell me how i can get that custom ID back from google checkout.

  • 写回答

1条回答 默认 最新

  • dongsimu4422 2011-06-14 22:28
    关注

    There are a couple of separate issues here:

    First, there is no automatic re-direct for the buyer after the Google Checkout transaction finishes.

    The continue-shopping-url paramenter allows you to provide a link that the user has to click in order to get back to your site after completing the order. Because this is just a link, there is no data post, such as the transaction private data you are looking for.

    More info about the continue-shopping-url paramenter:

    http://code.google.com/apis/checkout/developer/Google_Checkout_HTML_API_Parameter_Reference.html#tag_continue-shopping-url

    Second, you can use the <merchant-private-data> tag to pass any custom data about your order. To get it back you have to provide a callback URL in order to receive notifications from Google Checkout. When you get back the notification, read the custom info from the merchant-private-data tag .

    See this answer for a solution to a similar issue.

    评论

报告相同问题?

悬赏问题

  • ¥15 求帮我调试一下freefem代码
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图