成功结帐时的贝宝重定向 [英] paypal redirect on successful checkout

查看:84
本文介绍了成功结帐时的贝宝重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让我的 Paypal 订阅在成功结帐后重定向到自定义页面.

I am trying to get my Paypal subscription to redirect to a custom page after a successful checkout.

在提交到 Paypal 之前,我重载了提交处理程序,运行我自己的函数(以存储详细信息)并返回一个唯一的 ID.我想将该 ID 附加到我的返回 URL.(可以说是 GET 或 POST 变量)

Before submitting to Paypal I overload the submit handler, run my own function (to store details) and return a unique id. I want to attach that id to my return URL. (as a GET or POST var so to speak)

我已在我的 Paypal 沙盒卖家偏好设置中开启"自动重定向,但它似乎只能重定向到我必须输入的 URL.

I have turned auto redirect "on" in my Paypal sandbox sellers preferences, but it only seems to re-direct to the URL that I HAVE to put in there.

使用 <input type="hidden" name="return" value="someurl"/> 似乎不起作用.

using the <input type="hidden" name="return" value="someurl" /> does no seem to work.

我想要这样,以便在输入带有非付费"标志时可以捕获用户信息,然后通过 IPN 我可以使用已付费"标志更新该记录,并且我想使用唯一的可以这么说,将这一切联系在一起的 ID.

I want it this way so that I can capture the user information when entered with a "non-paid" flag, then via the IPN I can update that record with a "PAID" flag, and I want to use the unique ID to tie it all together so to speak.

推荐答案

您的隐藏字段名称需要符合 PayPal 要求的可接受的变量名称.ReturnUrl(不区分大小写)不起作用吗?

Your hidden field name needs to comply with the accepted variable name required by PayPal. Does ReturnUrl (not case-sensitive) not work?

<input type=hidden name="RETURNURL" value="https://www.YourReturnURL.com"> 

注意:我只调查并实施了快速结账,因此这可能不适用于您的实施:https://cms.paypal.com/en/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECGettingStarted

Note: I have only investigated and implemented express checkout so this may not apply to your implemenation: https://cms.paypal.com/en/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECGettingStarted

这篇关于成功结帐时的贝宝重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆