• <legend id='K7MYY'><style id='K7MYY'><dir id='K7MYY'><q id='K7MYY'></q></dir></style></legend>

      <tfoot id='K7MYY'></tfoot>

          <bdo id='K7MYY'></bdo><ul id='K7MYY'></ul>
        <i id='K7MYY'><tr id='K7MYY'><dt id='K7MYY'><q id='K7MYY'><span id='K7MYY'><b id='K7MYY'><form id='K7MYY'><ins id='K7MYY'></ins><ul id='K7MYY'></ul><sub id='K7MYY'></sub></form><legend id='K7MYY'></legend><bdo id='K7MYY'><pre id='K7MYY'><center id='K7MYY'></center></pre></bdo></b><th id='K7MYY'></th></span></q></dt></tr></i><div id='K7MYY'><tfoot id='K7MYY'></tfoot><dl id='K7MYY'><fieldset id='K7MYY'></fieldset></dl></div>
      1. <small id='K7MYY'></small><noframes id='K7MYY'>

        Paypal Express - 添加折扣

        时间:2023-06-24

          <tbody id='S13jJ'></tbody>

            1. <i id='S13jJ'><tr id='S13jJ'><dt id='S13jJ'><q id='S13jJ'><span id='S13jJ'><b id='S13jJ'><form id='S13jJ'><ins id='S13jJ'></ins><ul id='S13jJ'></ul><sub id='S13jJ'></sub></form><legend id='S13jJ'></legend><bdo id='S13jJ'><pre id='S13jJ'><center id='S13jJ'></center></pre></bdo></b><th id='S13jJ'></th></span></q></dt></tr></i><div id='S13jJ'><tfoot id='S13jJ'></tfoot><dl id='S13jJ'><fieldset id='S13jJ'></fieldset></dl></div>

                <legend id='S13jJ'><style id='S13jJ'><dir id='S13jJ'><q id='S13jJ'></q></dir></style></legend>
                <tfoot id='S13jJ'></tfoot>

                <small id='S13jJ'></small><noframes id='S13jJ'>

                • <bdo id='S13jJ'></bdo><ul id='S13jJ'></ul>
                  本文介绍了Paypal Express - 添加折扣的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我目前正在向 Paypal Express 发送常规交易,并且正在顺利到达网关.

                  I'm currently posting a regular transaction to Paypal Express and am reaching the gateway without error.

                  我现在想配置我的购物车以向网关发送折扣.我的第一个想法是修改发送到网关的AMT"值.但是,Paypal 似乎通过计算 ITEMAMTTAXAMTSHIPPINGAMT 字段的总数来验证AMT"字段,以确保总数为不变:

                  I would like to now configure my cart to send a discount to the gateway. My first thought was to modify the 'AMT' value that is sent to the gateway. However, it seems that Paypal validates the 'AMT' field by calculating the total of the ITEMAMT, TAXAMT and SHIPPINGAMT fields to ensure the total is unchanged:

                  [L_AMT0] => 49.99
                  [L_NUMBER0] => 3706{3}8
                  [L_QTY0] => 1
                  [L_TAXAMT0] => 0.00
                  [ITEMAMT] => 49.99
                  [TAXAMT] => 0
                  [SHIPPINGAMT] => 14.95
                  [AMT] => 64.94
                  

                  我向 Paypal 发送多少折扣?我已经查看了我能找到的文档,但没有运气;SO上的类似问题也无济于事.谢谢.

                  How many I send a discount to Paypal? I have looked through what documentation I can find, with no luck; the similar questions here on SO were no help, either. Thanks.

                  编辑:我注意到我可以通过字段SHIPDISCMT.我不知道这是否能让我做我需要它做的事情 - 我仍然收到表明某些内容不匹配"的错误.

                  Edit: I've noticed I can pass through the field SHIPDISCAMT. I don't know if this will let me do what I need it to though - I am still getting errors that indicate soemthing is 'mismatched'.

                  推荐答案

                  知道了.

                  事实证明,您可以将负金额作为订单项传递并自己将其标记为折扣.我不得不添加上面的代码:

                  It turns out that you can pass a negative amount through as a line item and label it as a discount yourself. I had to add the above code:

                  $params['L_NAME1'] = 'Discount Coupon';
                  $params['L_AMT1'] = -$discountCodeAmount;
                  $params['L_QTY1'] = 1;
                  $params['ITEMAMT'] -= $discountCodeAmount;
                  $params['AMT'] -= $discountCodeAmount;
                  

                  这产生了以下效果:

                  我在此 PDF 中找到了答案:

                  I found my answer in this PDF:

                  https://cms.paypal.com/cms_content/CA/en_US/files/developer/PP_ExpressCheckout_IntegrationGuide.pdf

                  出于某种原因,我读过的其他几篇 PayPal express 官方文章/文件中没有提供该信息.

                  For some reason, that information was not given in several other official PayPal express articles/documents I had read.

                  这篇关于Paypal Express - 添加折扣的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Paypal IPN 未调用问题 下一篇:带有 Laravel 的 PayPal API - 数据更新

                  相关文章

                  • <bdo id='P69XM'></bdo><ul id='P69XM'></ul>
                  <i id='P69XM'><tr id='P69XM'><dt id='P69XM'><q id='P69XM'><span id='P69XM'><b id='P69XM'><form id='P69XM'><ins id='P69XM'></ins><ul id='P69XM'></ul><sub id='P69XM'></sub></form><legend id='P69XM'></legend><bdo id='P69XM'><pre id='P69XM'><center id='P69XM'></center></pre></bdo></b><th id='P69XM'></th></span></q></dt></tr></i><div id='P69XM'><tfoot id='P69XM'></tfoot><dl id='P69XM'><fieldset id='P69XM'></fieldset></dl></div>
                    1. <small id='P69XM'></small><noframes id='P69XM'>

                    2. <legend id='P69XM'><style id='P69XM'><dir id='P69XM'><q id='P69XM'></q></dir></style></legend>
                    3. <tfoot id='P69XM'></tfoot>