我有一个购物车表格。当我使用 FF、IE 或 Safari 提交表单时,一切正常(它被重定向到 PayPal 帐户并显示产品描述、价格和登录付款选项)
但是在 Chrome 中提交时,它会打开 PayPal HOME 页面。
这是表格:
<form id="paypalForm" name="paypalForm" action="http://www.paypal.com/cgi-bin/webscr" method="post">
<input type="text" name="business" value="myaccount@hotmail.com">
<input type="text" name="cmd" value="_cart">
<input type="text" name="notify_url" value="http://www.mywebsite.com/ipnlib/ipn.php" />
<input type="text" name="return" value="http://www.mywebsite.com" />
<input type="text" name="currency_code" value="MXN" />
<input type="text" name="upload" value="1">
<input type="text" name="item_number_1" value="02603">
<input type="text" name="item_name_1" value="02603 HOVER PRO 450">
<input type="text" name="quantity_1" value="1">
<input type="text" name="amount_1" value="14239.4">
<input type="submit" value="submit" />
</form>
如果我检查发送的标头,似乎很好,这就是 Firebug 和 Chrome 开发工具的标头选项显示的内容:
铬合金
business:myaccount@hotmail.com
cmd:_cart
notify_url:http://www.mywebsite.com/ipnlib/ipn.php
return:http://www.mywebsite.com
currency_code:MXN
upload:1
item_number_1:02603
item_name_1:02603 HOVER PRO 450
quantity_1:1
amount_1:14239.4
火狐
amount_1 14239.4
business myaccount@hotmail.com
cmd _cart
currency_code MXN
item_name_1 02603 HOVER PRO 450
item_number_1 02603
notify_url http://www.mywebsite.com/ipnlib/ipn.php
quantity_1 1
return http://www.mywebsite.com
upload 1