我想为整个购物车收取一笔运费。我可以通过使用“tax_cart”变量来税收,但无法找到运费的等价物。我的代码如下所示。任何帮助将不胜感激。
<form class="paypalform"
action="https://www.sandbox.paypal.com/bn/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="business@gmail.com">
@foreach (var item in Model)
{
<input type="hidden" name="item_name_@count" value="@item.ProductName">
<input type="hidden" name="amount_@count" value="@item.Price">
count++;
cartTotal += @item.Price;
}
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax_cart" value="@ViewBag.TaxAmount" />
<input type="image"
src="http://www.sandbox.paypal.com/en_US/i/btn/x-click-but01.gif"
name="submit"
alt="Make payments with PayPal - it's fast, free and secure!">
答案 0 :(得分:1)
您可以设置变量“shipping”和“shipping2”来定义运费。