我已经设置了我的 PayPal 按钮,我可以使用它进行付款,所以它确实有效。
我已经设置了重定向并提供了我希望 PayPal 重定向到的 URL(无论是在取消付款还是完成付款的情况下):
我发现在此处的屏幕截图中,结帐路径中缺少一个/,但这只是因为我在测试后“审查”了链接。
为了进行此重定向,我还需要做些什么吗?它目前所做的只是弹出感谢屏幕,这很好,但不是我需要的。
任何人都可以建议为什么它不重定向吗?
最佳答案
你的按钮(或者说表单)有返回变量吗??
return -Optional - 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.
编辑:试试这个
<input type="hidden" name="return" value="http://www.mysite.com/thanks.html"/>
关于paypal - 付款后重定向回特定网址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16838429/