我有两个文件的index.php和success.php这样的:为什么PayPal会重定向到无查询字符串的页面?
的index.php包含:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Paypal test</title>
</head>
<body>
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="item">
<input type="hidden" name="amount" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="return" value="http://localhost/paypal/success.php">
<button type="submit">pay now</button>
</form>
</body>
</html>
和success.php包含:
<?php print_r($_POST); ?>
当我点击“pay now”按钮时,它会转到PayPa l,但交易成功后,重定向没有查询字符串像这样success.php:
为什么会出现在返回页面中没有查询字符串?
我解决后测试:我登录到我的沙箱帐户 - >配置文件 - >我的销售工具 - >网站首选项(更新) - >返回URL并设置我的返回页面url。在此之后,它的工作将 – zuhair