Paypal Express Checkout provide full items discount

心不动则不痛 提交于 2019-12-06 20:27:40

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

I received an answer from official support of Paypal:

PAYMENTREQUEST_0_ITEMAMT - cannot be zero.

Two options: Either reduce discount in main items section by 0.01 making the total value of goods ITEMAMT 0.01 and then additionally make a shipping discount of 0.01 (balancing the final sum).

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

Another option is to move shipping costs into items section:

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

For my question - why don't they implement it properly, I've got no response.

So we are left to use one of this crazy workarounds ((

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!