【问题标题】:php: Unable to return to my site after Paypal paymentphp: 支付宝付款后无法返回我的网站
【发布时间】:2016-10-12 20:00:03
【问题描述】:

首先我为沙盒创建了测试帐户,这些帐户由 Paypal 生成,如下所示:

1-我@mail.com 2- me-facilitator@mail.com 2- me-buyer@mail.com

现在我在我用于 Paypal 的主帐户 me@mail.com 上打开了自动返回。我的表格如下:

<form action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post' id="frmPayPal" name='frmPayPal'>
            <input type='hidden' name='business' value='me-facilitator@mail.com'>
            <input type='hidden' name='cmd' value='_xclick'>

            <input type='hidden' name='item_name' value='Awesome Stuff'>
            <input type='hidden' name='item_number' value='0002'>
            <input type='hidden' name='amount' value='0.99'>
            <input type='hidden' name='no_shipping' value='1'>
            <input type='hidden' name='currency_code' value='USD'>
            <input type='hidden' name='handling' value='0'>
            <input type="hidden" name="rm" value="2">
            <input type='hidden' name='return_method' value='2' />
            <input type='hidden' name='cancel_return' value='http://296c6e7b.ngrok.io/clients/ryan/pay.php'>
            <input type='hidden' name='return' value='http://296c6e7b.ngrok.io/clients/ryan/pay.php'>
            <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>

现在我可以成功购买,但它没有返回到 URL。

我通过 jQuery 提交表单

【问题讨论】:

  • me-facilitator@mail.com 是否没有自动返回设置?
  • 我做了,没有改变..仍然只是显示收据而已。

标签: php paypal


【解决方案1】:

您需要登录您的me-facilitator@mail.com 并启用Auto Return for Website Payments,就像您在 me@mail.com 中所做的一样。

我是怎么想出来的?因为这个:

&lt;input type='hidden' name='business' value='me-facilitator@mail.com'&gt;

【讨论】:

  • 登录付款?
  • 不,您需要登录帐户并在我的帐户概览配置文件 -> 我的销售工具 -> 网站偏好中更改其设置。你设置的自动返回是在me@mail.com,所以注销该帐户并登录me-facilitator@mail.com并设置自动返回true
  • 好吧,我在这里设置了原始帐户,但仍然没有区别。在这里查看296c6e7b.ngrok.io/clients/ryan/pix.php - 点击 Grid#4
  • 尝试关闭 PayPal 帐户可选设置,如果仍然不起作用,则在 Auto Return URL 设置中手动添加返回 url,确保您以 me-facilitator@mail.com 登录沙盒贝宝帐户。
  • 好的,我登录了。测试帐户中没有 SELLING TOOLS 选项,这意味着我无法在测试帐户中设置返回 URL
猜你喜欢
  • 2013-10-16
  • 2012-03-09
  • 2014-04-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-07-19
  • 2014-07-31
  • 2015-10-17
相关资源
最近更新 更多