我正在尝试集成 Paypal,并且在此过程中使用沙箱。我按照以下问题中接受的答案的步骤进行操作。设置 PayPal 退货 URL 并使其自动退货?
但是当我尝试输入 URL 时,Paypal 返回以下错误。
We were unable to validate the URL you have entered. Please check your entry and try again.
我要设置的 URL 是http://localhost:8888/paypal/success.php
.
我还尝试使用如下形式发送返回 url。
<input type="hidden" name="return" value="http://localhost:8888/paypal/success.php">
这两种方法对我都不起作用。
完整形式
<form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" value="dasun_1358759028_biz@archmage.lk" name="business">
<!-- Specify a Buy Now button. -->
<input type="hidden" value="_xclick" name="cmd">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" value="AM Test Item" name="item_name">
<input type="hidden" value="22.16" name="amount">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" value="item_number" name="item_number">
<input type="hidden" name="return" value="http://localhost:8888/paypal/success.php">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
我怎样才能在我的开发电脑上测试这个?