PayPal是否未覆盖返回URL?

3
我需要覆盖给定的paypal按钮HTML代码中的默认自动返回URL。我按照以下步骤操作:
  1. Check the Auto return Url section and gave a default URL
  2. Generate a Buy Now button and left the Return and Cancel URL options as it is.
  3. Paste the button code

    <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="return" value="http://www.someURL.com"/>
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="G3WQ*******">
    <input type="image" src="https://www.sandbox.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.sandbox.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
    </form>
    
在沙盒PayPal上成功付款后,总是重定向到默认URL。为什么不能覆盖它呢?任何帮助都将不胜感激。
我在PayPal社区和StackOverflow上看到了几个类似的未回答的问题:
- https://www.paypal-community.com/t5/About-Payments-Archive/Auto-Return-Custom-URL-Not-Overriding-Auto-Return-Setting-URL/td-p/1038334 - Paypal button auto-return url not overriding the default url - Setting PayPal return URL and making it auto return?
1个回答

2

在使用托管按钮时,您将无法直接在按钮中使用返回字段。创建按钮时(或通过PayPal帐户进行编辑)必须在托管按钮设置中设置。

如果您想要能够即时设置自己的返回URL,则必须使用非托管按钮。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接