PayPal表单无法在Chrome中使用

时间:2012-08-17 17:05:52

标签: forms google-chrome paypal

我有购物车表格。当我使用FF,IE或Safari提交表单时,一切正常(它被重定向到PayPal帐户并显示产品描述,价格和登录付款选项)

但在提交Chrome时,它会打开PayPal主页。

这是表格:

<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

的FireFox

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

1 个答案:

答案 0 :(得分:1)

发现它!!!

而不是

<form id="paypalForm" name="paypalForm" action="http://www.paypal.com/cgi-bin/webscr" method="post">

是:

<form id="paypalForm" name="paypalForm" action="https://www.paypal.com/cgi-bin/webscr" method="post">

很奇怪它在除Chrome之外的所有浏览器中都有效...