Paypal Express Checkout提供全部折扣 [英] Paypal Express Checkout provide full items discount
问题描述
我在贝宝(Paypal)中使用Express Checkout,并尝试将折扣作为单独的项目传递(根据手册,这是受支持的).
I'm using Express Checkout in Paypal and trying to pass discount as a separate item (according to manual this is supported).
我通过了以下部分(该商品享有全额折扣,但需要支付运费):
I pass the following part (full discount on the item, but require to pay shipping):
&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
但是我得到 购物车项目金额的总和与订单金额不符." 我检查了很多案例,在我的示例中似乎已经解决了人们遇到的所有其他问题,但是仍然无法解决问题.
But I get "The totals of the cart item amounts do not match order amounts." I checked many cases and it seems that all other issues people had are already addressed in my example, but it still doesn't work.
有任何提示吗? 谢谢!
Any hints? Thanks!
推荐答案
据我所知,"ITEMAMT"不应为零.它必须大于零.因此,如果您这样使用,它应该可以工作:
As far as I know the "ITEMAMT" should not be zero . It must be greater than zero . So , if you use like this, it should work :
&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
这篇关于Paypal Express Checkout提供全部折扣的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!