gpt4 book ai didi

ruby-on-rails - Paypal - 付款后重定向到我自己的页面

转载 作者:太空宇宙 更新时间:2023-11-03 15:56:54 26 4
gpt4 key购买 nike

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

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

最佳答案

您只需向您的按钮添加一个“返回”变量。

如果您手动创建按钮,它只是一个名为“返回”的隐藏字段,其值设置为您的感谢页面。例如:

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

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

来自 PayPal 的支付标准文档 [ https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables ](它很长,所以只需搜索“return”):

return

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.

Default – PayPal redirects the browser to a PayPal webpage.

关于ruby-on-rails - Paypal - 付款后重定向到我自己的页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11178686/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com