$DeductionAmount = -24.00;
我使用以下行进行折扣
'&PAYMENTREQUEST_0_SHIPDISCAMT=-'.$DeductionAmount.'
在 PayPal页面:
Item total $81.00
Postage discount -$24.00
Total $57.00
我想添加折扣,但折扣与运费/邮资折扣无关。
如何将“邮资折扣”更改为“扣减”/“折扣”(或某些自定义文字)?
先谢谢
答案 0 :(得分:1)
您需要使用负数作为订单项。
Example Request:
METHOD=SetExpressCheckout
VERSION=80.0
RETURNURL=http://localhost/order_auth_capture/doauthorisation.php
CANCELURL=http://localhost/order_auth_capture/cancel.php
PAYMENTREQUEST_0_CURRENCYCODE=USD
PAYMENTREQUEST_0_ITEMAMT=8.00
PAYMENTREQUEST_0_AMT=8.00
PAYMENTREQUEST_0_CURRENCYCODE=USD
L_PAYMENTREQUEST_0_NAME0=Cofee Mug
L_PAYMENTREQUEST_0_DESC0=Size: 8.8-oz
L_PAYMENTREQUEST_0_AMT0=10.00
L_PAYMENTREQUEST_0_QTY0=1
<!-- **Discount parameters** -->
L_PAYMENTREQUEST_0_NAME1=Discount
L_PAYMENTREQUEST_0_DESC1=Discount
L_PAYMENTREQUEST_0_AMT1=-2.00
L_PAYMENTREQUEST_0_QTY1=1
旧布局: