0

我正在使用 PayPal 快速结账作为非注册用户的付款方式。所以在使用快递结账时需要扣除默认的运费。这是发布到 PayPal 的数组:

    Array
(
    [CURRENCYCODE] => USD
    [L_NAME0] => The Matrix
    [L_AMT0] => 30.00
    [L_NUMBER0] => 6
    [L_QTY0] => 1
    [L_TAXAMT0] => 0.00
    [L_NAME1] => Blade Runner - Director's Cut
    [L_AMT1] => 30.00
    [L_NUMBER1] => 5
    [L_QTY1] => 1
    [L_TAXAMT1] => 0.00
    [L_NAME2] => Unreal Tournament
    [L_AMT2] => 89.99
    [L_NUMBER2] => 22{5}10
    [L_QTY2] => 1
    [L_TAXAMT2] => 0.00
    [L_NAME3] => Microsoft IntelliMouse Explorer
    [L_AMT3] => 64.95
    [L_NUMBER3] => 26{3}8
    [L_QTY3] => 1
    [L_TAXAMT3] => 0.00
    [ITEMAMT] => 214.94
    [TAXAMT] => 0
    [ADDROVERRIDE] => 1
    [SHIPTONAME] => MARY ROE
    [SHIPTOSTREET] => SUITE 5A-1204, 799 E DRAGRAM
    [SHIPTOCITY] => Tucson
    [SHIPTOSTATE] => AZ
    [SHIPTOCOUNTRYCODE] => US
    [SHIPTOZIP] => 85705
    [L_SHIPPINGOPTIONNAME0] => Flat Rate (Best Way)
    [L_SHIPINGPOPTIONLABEL0] => Flat Rate (Best Way)
    [L_SHIPPINGOPTIONAMOUNT0] => 5.00
    [L_SHIPPINGOPTIONISDEFAULT0] => true
    [CALLBACK] => http://example.com/test/ext/modules/payment/paypal/express.php?osC_Action=callbackSet
    [CALLBACKTIMEOUT] => 5
    [INSURANCEOPTIONSOFFERED] => false
    [SHIPPINGAMT] => 5.00
    [AMT] => 219.94
    [MAXAMT] => 324.94
) 

运费会发布到 PayPal ( [SHIPPINGAMT] => 5.00),但不会显示在 paypal 页面上。

请帮忙。

4

1 回答 1

1

您使用的是哪个版本的 API?我知道 SHIPPINGAMT 将适用于 60 或更早版本,但更高版本更改了定义

这是SetExpressCheckout 的 API 参考(我认为您正在调用它)。他们将 SHIPPINGAMT 列为折旧并更喜欢 PAYMENTREQUEST_n_SHIPPINGAMT(即 PAYMENTREQUEST_0_SHIPPINGAMT)。因此,您可以将 API 版本调用回滚到 60 或更改为这个新字段。

于 2013-10-03T14:41:09.767 回答