【问题标题】:Paypal - show cart discount above taxPaypal - 显示购物车折扣高于税
【发布时间】: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


    【解决方案1】:

    PayPal 使用以下变量来控制付款按钮中的折扣。

    折扣金额 折扣金额2 折扣率 折扣率2 折扣号码

    您可以到下面的链接,搜索上面的关键词了解详情。

    https://developer.paypal.com/docs/classic/button-manager/integration-guide/ButtonManagerHTMLVariables/?mark=html

    有关第 3 方购物车问题的更多详细信息,您可以参考以下链接。

    https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/cart_upload/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-28
      • 1970-01-01
      • 2021-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-26
      相关资源
      最近更新 更多