PayPal Express Checkout - 扣除金额的自定义文本

时间:2015-02-11 08:18:19

标签: php paypal express-checkout

$DeductionAmount = -24.00;

我使用以下行进行折扣

'&PAYMENTREQUEST_0_SHIPDISCAMT=-'.$DeductionAmount.'

PayPal页面:

Item total               $81.00
Postage discount        -$24.00

                   Total $57.00

我想添加折扣,但折扣与运费/邮资折扣无关。

如何将“邮资折扣”更改为“扣减”/“折扣”(或某些自定义文字)?

先谢谢

1 个答案:

答案 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

enter image description here

旧布局: enter image description here