<form style="float:right" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="shivram@gmail.com">
<input type="hidden" name="item_name_1" value="Paper">
<input type="hidden" name="amount_1" value="20">
<input type="hidden" name="shipping" value="3.99">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
运费值设置为3.99。它不会与发票相加。
JS Fiddle http://jsfiddle.net/34ZfY/点击立即购买按钮(运费不会显示)
答案 0 :(得分:3)
因为它必须是这样的:
<input type="hidden" name="shipping_1" value="3.99">
所以,如果你有更多产品,那么......
<input type="hidden" name="shipping_2" value="4.99">
<input type="hidden" name="shipping_3" value="7.99">
等等..