【问题标题】:Dynamic redirect url for PayPal Buy Now buttonPayPal 立即购买按钮的动态重定向 URL
【发布时间】:2016-09-22 17:12:09
【问题描述】:

我在我的网站上集成了一个 PayPal 立即购买按钮,如下所示:

<form name="_xclick" action="https://www.paypal.com/uk/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="RECEIVER@RECEIVER.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="description here">
<input type="hidden" name="amount" value="100">
<input type="image" src="https://www.paypalobjects.com/en_US/NL/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

购买成功后,我想将用户重定向到某个页面(事先不知道 - 动态)。如何实现?

【问题讨论】:

    标签: html paypal payment


    【解决方案1】:

    您需要在表单中设置“返回”字段。像这样:

    <input type="hidden" name="return" value="URLspecificToThisTransaction">
    

    欲了解更多信息,请访问documentation here

    【讨论】:

    • 感谢工作。只是一件事,有时它会显示旧的 PayPal 表单(不会自动重定向)。有什么想法可以强制使用新的结帐表单(也更漂亮)?
    • 此链接描述了如何设置自动返回paypal.com/cgi-bin/webscr?cmd=p/mer/…,希望对您有所帮助。
    猜你喜欢
    • 2013-11-02
    • 2014-12-18
    • 2014-08-03
    • 1970-01-01
    • 2013-01-03
    • 2015-05-09
    • 2014-10-05
    • 2023-03-24
    • 1970-01-01
    相关资源
    最近更新 更多