【发布时间】:2018-06-27 17:28:25
【问题描述】:
我已经设置了第 3 方购物车,除了一个小问题外,我的网站和 PayPal 上的一切都正常运行。我正在对整个购物车应用折扣,并对折扣金额征税。在 PayPal 中,这些数字都是正确的,但它显示的折扣税额高于折扣。有没有办法让折扣显示在 PayPal 的税款之上。这就是现在 PayPal 中的样子:
item 1 $10.00 USD
item 2 $20.00 USD
Item total $30.00 USD
Tax $0.90 USD
Discount $15.00 USD
Total $19.40 USD
“看起来”是在折扣之前征收税款(在本例中为 6%)。我只是希望能够将该折扣线上移至高于税线。这可能吗?这是我将信息传递给 PayPal 的表单代码。
<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="dummy-facilitator@dummysite.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="discount_amount_cart" value="@ViewBag.DiscountAmount" />
<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!">
</form>
【问题讨论】:
标签: c# paypal shopping-cart