我尝试为网上商店创建一个自动填写的贝宝表格:
<form action="https://www.paypal.com/cgi-bin/webscr" class="input-form" method="post" enctype="application/x-www-form-urlencoded; charset=utf-8">
<input type="hidden" value="utf-8" name="charset">
<input type="hidden" value="_s-xclick" name="cmd">
<input type="hidden" value="{somehash}" name="hosted_button_id">
<input type="hidden" value="17" name="item_number">
<input type="hidden" value="kosár és szállítás" name="item_name">
<input type="hidden" value="9990" name="amount">
<input type="hidden" value="HUF" name="currency_code">
<input type="hidden" value="1" name="upload">
<input type="hidden" value="1" name="no_shipping">
<input type="hidden" value="http://www.mydomain.loc/" name="return">
<input type="image" border="0" alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" class="button submit-button image-button">
<img width="1" height="1" border="0" alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>
{somehash} 给了我贝宝帐户所有者(我从来没有帐户)。我的问题,提交后我得到这样的东西: screenshot 它只包含项目名称......
<div id="miniCartContent" class="body clearfix" style="height: 1083px;">
<div class="" id="miniCart">
<h3>Your order summary</h3>
<div class="small head wrap">
Descriptions
<span class="amount">Amount</span>
</div>
<ol class="small wrap items ">
<li class="seller1">
<ul>
<li class="itmdet" id="multiitem1">
<ul class="item1">
<li class="dark">
<span class="name">
<a id="showname0" title="" href="#name0" class="autoTooltip">
kosár és szállítás
<span class="accessAid">kosár és szállítás</span>
</a>
</span>
<span class="secondary noamt amount">0</span>
</li>
<li class="secondary qty">
<p class="group">
<label for="item_price"><span class="labelText">Item price: </span></label>
<span class="field">
<input type="text" value="" name="amount" id="item_price" size="6" maxlength="15">
</span>
</p>
</li>
<li class="secondary">
Quantity: 1
</li>
<li>
<div class="action">
<span class="buttonAsLink">
<input type="submit" onclick="PAYPAL.Checkout.Slider.showPanelMsg('cartMsg')" class="action updateSubmit" name="update.x" id="updateTotals0" value="Update">
</span>
</div>
</li>
</ul>
<ul></ul>
</li>
</ul>
</li>
</ol>
<div class="wrap items totals item1">
<ul>
<li class="small heavy">
Item total <span class="amount">0</span>
</li>
</ul>
</div>
我不知道该怎么做,我阅读了十几个教程,但没有成功:S 知道吗?
编辑:
从开发服务器、localhost 进行测试(但我认为这不算数)...