Paypal 商品折扣为免费,运费仍需支付

Posted

技术标签:

【中文标题】Paypal 商品折扣为免费,运费仍需支付【英文标题】:Paypal Item Discounted to free, Shipping still to pay 【发布时间】:2011-11-18 00:29:51 【问题描述】:

我目前正在一个网站上设置 Paypal,作为客户的替代付款方式。一般来说,它工作正常。我可以下订单,它会通过 Paypal 的网站,显示正确的信息,一切都很好。当用户对订单应用折扣时,一切正常,完全不用担心。

当用户为全部订单价值应用折扣时(即,订单价格为 20 英镑,他们的折扣代码为 20 英镑),我收到错误消息“商品总计无效”。从贝宝回来。运费为 0 英镑,运费为 5 英镑。

首先,我发送的字段有什么问题吗?如果有,有什么问题? :) 如果您需要更多信息,请随时询问。

干杯。

快速结帐字段示例:

Array
(
    [METHOD] => SetExpressCheckout
    [RETURNURL] => /snip/
    [CANCELURL] => /snip/
    [NOTIFYURL] =>
    [AMT] => 5.00
    [DESC] =>
    [CURRENCYCODE] => GBP
    [MAXAMT] =>
    [USERACTION] => commit
    [INVNUM] =>
    [ADDROVERRIDE] => 0
    [SHIPTONAME] =>
    [SHIPTOSTREET] =>
    [SHIPTOSTREET2] =>
    [SHIPTOCITY] =>
    [SHIPTOSTATE] =>
    [SHIPTOZIP] =>
    [SHIPTOCOUNTRYCODE] =>
    [LOCALECODE] => GB
    [PAGESTYLE] =>
    [HDRIMG] =>
    [BUTTONSOURCE] => /snip/
    [L_SHIPPINGOPTIONISDEFAULT0] => true
    [L_SHIPPINGOPTIONNAME0] => Royal Mail Tracked Next Day Ref:/snip (int)/
    [L_SHIPPINGOPTIONLABEL0] =>
    [L_SHIPPINGOPTIONAMOUNT0] => 5.00
    [L_SHIPPINGOPTIONISDEFAULT1] => false
    [L_SHIPPINGOPTIONNAME1] => Interlink Express Next Day Delivery (Ord Ref:/snip (int)/
    [L_SHIPPINGOPTIONLABEL1] =>
    [L_SHIPPINGOPTIONAMOUNT1] => 7.00
    [L_SHIPPINGOPTIONISDEFAULT2] => false
    [L_SHIPPINGOPTIONNAME2] => Collect In Store Ref:/snip (int)/
    [L_SHIPPINGOPTIONLABEL2] =>
    [L_SHIPPINGOPTIONAMOUNT2] => 0.00
    [L_NAME0] => /snip/
    [L_NUMBER0] => /snip (item id)/
    [L_DESC0] =>
    [L_AMT0] => 8.33
    [L_TAXAMT0] => 1.67
    [L_QTY0] => 1
    [L_NAME1] => /snip/
    [L_NUMBER1] => /snip (item id)/
    [L_DESC1] =>
    [L_AMT1] => 8.33
    [L_TAXAMT1] => 1.67
    [L_QTY1] => 1
    [L_AMT2] => -16.66
    [L_TAXAMT2] => -3.34
    [L_NAME2] => /snip/
    [L_DESC2] => /snip/
    [L_QTY2] => 1
    [ALLOWNOTE] => 1
    [BUYEREMAILOPTINENABLE] => 1
    [CALLBACK] => /snip/
    [CALLBACKURL] => /snip/
    [CALLBACKTIMEOUT] => 6
    [REQCONFIRMSHIPPING] => 0
    [SHIPPINGAMT] => 5.00
    [ITEMAMT] => 0.00
    [TAXAMT] => 0.00
)

【问题讨论】:

【参考方案1】:

您不能向 PayPal 发送空金额或零金额。 0.01 美元是您可以达到的最低价。

您可以尝试解决此问题,方法是从运费中提取一美分并将其添加到总额中,或者如果商品费用为零,则交换运费和商品费用。

【讨论】:

嗯,有点烦人哈。是否有已知的解决方法,或者您只需从运费中扣除一分钱并将其添加到商品中? 那个,或者如果商品费用为 0,则将运费转移到商品费用中。不幸的是,这是我所知道的唯一解决方法。 您可以将运费添加为正在出售的“商品”,并在您拨打贝宝电话时输入 nvp "NOSHIPPING=1" 如果您确实要运送某些东西,我不建议您设置 NOSHIPPING=1。以这种方式出售保护将不会涵盖您。

以上是关于Paypal 商品折扣为免费,运费仍需支付的主要内容,如果未能解决你的问题,请参考以下文章

ios paypal简单支付与多个对象

paypal 数字商品整合如何启用客人支付?

从贝宝表格中减去优惠券(折扣)价格(如果可能)

BeanShell计算支付价格

Paypal Express Checkout:应用订单折扣

支付宝支付数字商品