首先,我創建了兩種化合物爲貝寶爲如下沙盒測試帳戶: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]沒有自動返回設置? – Efx
我做了,沒有改變..仍然只是顯示收據就是它。 – Volatil3