PHP:无法Paypal付款后返回到我的网站

问题描述:

首先,我创建了两种化合物为贝宝为如下沙盒测试帐户:PHP:无法Paypal付款后返回到我的网站

1- [email protected] 2- [email protected] [email protected]

现在我在我的主帐户上将自动返回功能打开为ON,我使用的是支付宝,即[email protected]。我的表单看起来像:

<form action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post' id="frmPayPal" name='frmPayPal'> 
      <input type='hidden' name='business' value='[email protected]'> 
      <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

+0

是否有[email protected]没有自动返回设置? – Efx

+0

我做了,没有改变..仍然只是显示收据就是它。 – Volatil3

提交表单您需要登录您的[email protected],并启用Auto Return for Website Payments就像你在[email protected]如何做。

我怎么想的?正因为如此:

<input type='hidden' name='business' value='[email protected]'>

+0

登录即可付款吗? – Volatil3

+0

不,您需要登录帐户并更改其在我的帐户概览配置文件 - >我的销售工具 - >网站首选项中的设置。你设置的自动返回是在'我@ mail.com'上,所以注销这个账户并登录'me-facilitator @ mail.com'并设置自动返回true – Efx

+0

嗯,我在这里设置了原始账户,但仍然没有任何区别。点击这里http://296c6e7b.ngrok.io/clients/ryan/pix.php - 点击网格#4 – Volatil3