贝宝-付款后重定向到我自己的页面 [英] Paypal - redirect after payment to my own page

查看:139
本文介绍了贝宝-付款后重定向到我自己的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

成功付款后,我想自动将用户重定向到我自己的谢谢"页面.目前,我正在沙盒帐户和本地主机上使用Paypal.

I would like to automatically redirecta a user after successful payment to my own "thank you" page. Currently I am working with Paypal under the sandbox account and on my localhost.

有什么办法吗?我试图浏览沙箱中的管理员帐户,但没有找到有用的信息...

Is there any way to do it? I tried to browse through the admin account in sandbox, but I didn't find something useful...

推荐答案

您只需要向按钮添加返回"变量即可.

You simply need to add a "return" variable to your button.

如果您手动创建按钮,则它只是一个名为"return"的隐藏字段,其值设置为谢谢"页面.例如:

If you're manually creating the button, it's just a hidden field named "return" with value set to your Thank You page. Eg:

<input type="hidden" name="return" value="http://www.mysite.com/thanks.html"/>

如果您使用的是编码按钮,则可以在PayPal网站的按钮向导页面中进行设置.

If you're using an encoded button, then you can set this in the button wizard page of the PayPal site.

摘自PayPal付款标准文档[ https ://cms.paypal.com/us/cgi-bin/?cmd = _render-content& content_ID = developer/e_howto_html_Appx_websitestandard_html变量](很长,因此只需搜索返回")即可:

From PayPal's Payments Standard documentation [ https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables ] (It's quite long so just do a search for "return") :

返回

买家完成付款后,PayPal会将其重定向到该浏览器的URL.例如,在您的网站上指定一个显示谢谢您付款"页面的URL.

The URL to which PayPal redirects buyers’ browser after they complete their payments. For example, specify a URL on your site that displays a "Thank you for your payment" page.

默认-PayPal将浏览器重定向到PayPal网页.

Default – PayPal redirects the browser to a PayPal webpage.

这篇关于贝宝-付款后重定向到我自己的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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