0

我是 paypal 的新手。如何在以下代码中使用折扣。

'&CURRENCYCODE='.urlencode($PayPalCurrencyCode).
                    '&PAYMENTACTION=Sale'.
                    '&ALLOWNOTE=1'.
                    '&PAYMENTREQUEST_0_CURRENCYCODE='.urlencode($PayPalCurrencyCode).
                    '&PAYMENTREQUEST_0_SHIPPINGAMT='.urlencode($shipping_total).
                    '&PAYMENTREQUEST_0_AMT='.urlencode($cart_total).
                    '&PAYMENTREQUEST_0_ITEMAMT='.urlencode($item_total).
                    '&PAYMENTREQUEST_0_SHIPPINGDISCAMT='.urlencode($discount_total).

                    $products_str.

                    '&AMT='.urlencode($item_total).
                    '&RETURNURL='.urlencode($PayPalReturnURL ).
                    '&CANCELURL='.urlencode($PayPalCancelURL);

如何编写 SetExpressCheckout_API 付款折扣。

它的工作很好,没有折扣。所以我不知道如何在这里写折扣

请帮我

4

1 回答 1

0

您可以通过在 L_PAYMENTREQUEST_0_AMT0 参数中设置负金额来将折扣指定为行项目。例如;

RETURNURL:  http://url
CANCELURL:  http://url
PAYMENTREQUEST_0_AMT:   100.00
paymentrequest_0_currencycode:  USD
PAYMENTREQUEST_0_ITEMAMT:   70.00
PAYMENTREQUEST_0_SHIPPINGAMT:   15.00
PAYMENTREQUEST_0_HANDLINGAMT:   10.00
PAYMENTREQUEST_0_TAXAMT:    5.00
PAYMENTREQUEST_0_DESC:  Description
paymentrequest_0_paymentaction: Sale
L_PAYMENTREQUEST_0_NAME0:   Test article
L_PAYMENTREQUEST_0_DESC0:   Description
L_PAYMENTREQUEST_0_AMT0:    70.00
L_PAYMENTREQUEST_0_NUMBER0: 123456
L_PAYMENTREQUEST_0_QTY0:    1
L_PAYMENTREQUEST_0_TAXAMT0: 5.00

这里

于 2013-10-24T05:12:09.517 回答