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
答
提交表单您需要登录您的[email protected]
,并启用Auto Return for Website Payments
就像你在[email protected]如何做。
我怎么想的?正因为如此:
<input type='hidden' name='business' value='[email protected]'>
是否有[email protected]没有自动返回设置? – Efx
我做了,没有改变..仍然只是显示收据就是它。 – Volatil3