Paypal Express Checkout提供全套商品折扣

时间:2014-11-14 19:56:35

标签: paypal express-checkout discount

我在Paypal中使用Express Checkout并尝试将折扣作为单独项目传递(根据手册支持)。

我通过以下部分(该项目的全额折扣,但需要支付运费):

&NOSHIPPING=0
&PAYMENTREQUEST_0_SHIPPINGAMT=2.00
&PAYMENTREQUEST_0_SHIPDISCAMT=0.00
&L_PAYMENTREQUEST_0_NAME0=Item1
&L_PAYMENTREQUEST_0_QTY0=1
&L_PAYMENTREQUEST_0_AMT0=25.90
&L_PAYMENTREQUEST_0_NAME1=Discount
&L_PAYMENTREQUEST_0_QTY1=1
&L_PAYMENTREQUEST_0_AMT1=-25.90
&PAYMENTREQUEST_0_ITEMAMT=0.00
&PAYMENTREQUEST_0_AMT=2.00

但我得到 “购物车项目金额的总数与订单金额不符。” 我检查了很多案例,似乎人们已经解决了所有其他问题,但是它仍然没有用。

任何提示? 谢谢!

2 个答案:

答案 0 :(得分:1)

据我所知," ITEMAMT"不应该是零。它必须大于零。所以,如果你像这样使用它应该有效:

&NOSHIPPING=0

&PAYMENTREQUEST_0_SHIPPINGAMT=2.00

&PAYMENTREQUEST_0_SHIPDISCAMT=0.00

&L_PAYMENTREQUEST_0_NAME0=Item1

&L_PAYMENTREQUEST_0_QTY0=1

&L_PAYMENTREQUEST_0_AMT0=25.91

&L_PAYMENTREQUEST_0_NAME1=Discount

&L_PAYMENTREQUEST_0_QTY1=1

&L_PAYMENTREQUEST_0_AMT1=-25.90

&PAYMENTREQUEST_0_ITEMAMT=0.01

&PAYMENTREQUEST_0_AMT=2.01

答案 1 :(得分:0)

我收到了Paypal官方支持的答复:

PAYMENTREQUEST_0_ITEMAMT - 不能为零。

两种选择: 将主要商品部分的折扣减少0.01,使商品的总价值达到0.01,然后另外减少运费折扣0.01(平衡最终金额)。

PAYMENTREQUEST_0_PAYMENTACTION=Sale
<!-- Item 1-->
L_PAYMENTREQUEST_0_NAME0=Item1
L_PAYMENTREQUEST_0_QTY0=1
L_PAYMENTREQUEST_0_AMT0=25.90

<!-- Iteam 2-->
L_PAYMENTREQUEST_0_NAME1=Discount
L_PAYMENTREQUEST_0_QTY1=1
L_PAYMENTREQUEST_0_AMT1=-25.89
<!--Total of items amount-->
PAYMENTREQUEST_0_ITEMAMT=0.01

<!-- Shipping/tax/handling etc-->
PAYMENTREQUEST_0_SHIPPINGAMT=2.00
PAYMENTREQUEST_0_SHIPDISCAMT= -0.01
<!-- Total amount -->
PAYMENTREQUEST_0_AMT=2.00

另一个选择是将运费转移到项目部分:

L_PAYMENTREQUEST_0_NAME0=Item1
L_PAYMENTREQUEST_0_QTY0=1
L_PAYMENTREQUEST_0_AMT0=0.00
<!-- Iteam 2-->
L_PAYMENTREQUEST_0_NAME1=shipping cost
L_PAYMENTREQUEST_0_QTY1=1
L_PAYMENTREQUEST_0_AMT1=2.00
<!--Total of items amount-->
PAYMENTREQUEST_0_ITEMAMT=2.00
PAYMENTREQUEST_0_AMT=2.00

对于我的问题 - 为什么他们没有正确实施,我没有回应。

所以我们只能使用其中一种疯狂的解决方法(