【问题标题】:Setting auto redirect in payment pro paypal (sandox) after payment付款后在支付专业贝宝(sandox)中设置自动重定向
【发布时间】:2012-11-11 12:26:48
【问题描述】:

我正在测试 paypal 的付款流程。我正在使用 Paypal Website Payment Pro 解决方案。 PayPal 交易完成后,PayPal 会显示以下付款成功消息:

Thanks for your order
Your payment of $XXXX.XX USD is complete.
You're now going back to MYSITE.
If you are not redirected within 10 seconds, click here.

我想跳过这个页面,直接转到我指定的页面网址。

我已按照贝宝文档中提到的此说明进行操作。

1:登录paypal沙盒账号

2:我转到个人资料选项卡,然后在网站付款设置下转到网站付款专业托管解决方案,然后转到设置

有一个自动返回选项。我启用自动返回单选框并插入返回 url .ans 然后保存它。

但问题是它不是自动重定向。如果用户点击取消按钮,它会显示相同的贝宝付款成功页面并弹出消息“继续或取消按钮”,那么它不会重定向到我指定的网址(我不想要)

我知道这个问题可能是重复的。但我之所以问这个问题是因为贝宝确实变化很快。

提前致谢

【问题讨论】:

    标签: php html redirect paypal paypal-sandbox


    【解决方案1】:

    如果您使用 PAYPAL php SDK 那么您必须创建一个像“success.php”这样的成功页面,并且在 payment.php 文件中您必须设置该文件的成功 URL(success.php)。

    【讨论】:

    • 我没有使用 php sdk。我正在使用带有 html 表单的 Website Payment Pro 解决方案来提交付款表单。我已经将thank-you.php作为成功页面。
    • 好的。然后你必须在你的 html 表单中设置取消 url 和返回 url,比如
    • 是的,我正在使用这个 html 代码。但是在我指定的页面之后仍然得到paypal成功支付页面。
    • 你能告诉我们你的代码吗?在大多数情况下,几乎不可能提供帮助。
    • <form action="https://securepayments.sandbox.paypal.com/acquiringweb" method="post" name="paypal_payment" id="paypal_payment"> <input type="hidden" name="cmd" value="_hosted-payment"> <input type="hidden" name="subtotal" id="subtotal" value="59"> <input type="hidden" name="business" value="LHCKP5XVHW2XC"> <input type="hidden" name="paymentaction" value="sale"> <input type="hidden" name="currency_code" id="currency_code" value=""> <input type="hidden" name="return" value="http://abstest.com./purchase/thank-you.php">
    猜你喜欢
    • 2016-03-25
    • 2013-09-21
    • 2011-07-19
    • 1970-01-01
    • 2020-02-05
    • 2019-04-25
    • 2016-02-09
    • 1970-01-01
    • 2014-07-18
    相关资源
    最近更新 更多