1

我们已将以下问题发送给 PayPal 的技术支持,但 2 周后仍然没有消息。我希望这里有人可以帮助我们:)

我们目前正在尝试使 PayPal Express Checkout 与 Magento 一起使用。

我们的运输回调脚本正在被调用。

如果脚本发回以下响应(仅限 UPS 选项),那么 PayPal 中的一切都会按预期工作:

L_SHIPPINGOPTIONISDEFAULT0=true&L_SHIPPINGOPTIONAMOUNT0=19.03&L_SHIPPINGOPTIONLABEL0=ups_11&L_SHIPPINGOPTIONNAME0=United+Parcel+Service+-+UPS+Standard&L_TAXAMT0=5.98&L_SHIPPINGOPTIONISDEFAULT1=false&L_SHIPPINGOPTIONAMOUNT1=23.42&L_SHIPPINGOPTIONLABEL1=ups_13&L_SHIPPINGOPTIONNAME1=United+Parcel+Service+-+UPS+Next+Day+Air+Saver&L_TAXAMT1=5.98&L_SHIPPINGOPTIONISDEFAULT2=false&L_SHIPPINGOPTIONAMOUNT2=28.07&L_SHIPPINGOPTIONLABEL2=ups_01&L_SHIPPINGOPTIONNAME2=United+Parcel+Service+-+UPS+Express&L_TAXAMT2=5.98&METHOD=CallbackResponse

但是,如果我们发送此响应(加拿大邮政的 UPS 和 rpc)选项,PayPal 会简单地忽略我们的响应并且不显示任何运输选项:

L_SHIPPINGOPTIONISDEFAULT0=true&L_SHIPPINGOPTIONAMOUNT0=6.08&L_SHIPPINGOPTIONLABEL0=rcp_1020&L_SHIPPINGOPTIONNAME0=Canada+Post+-+Expedited&L_TAXAMT0=5.19&L_SHIPPINGOPTIONISDEFAULT1=false&L_SHIPPINGOPTIONAMOUNT1=14.74&L_SHIPPINGOPTIONLABEL1=rcp_1040&L_SHIPPINGOPTIONNAME1=Canada+Post+-+Priority&L_TAXAMT1=5.19&L_SHIPPINGOPTIONISDEFAULT2=false&L_SHIPPINGOPTIONAMOUNT2=19.33&L_SHIPPINGOPTIONLABEL2=ups_11&L_SHIPPINGOPTIONNAME2=United+Parcel+Service+-+UPS+Standard&L_TAXAMT2=5.19&L_SHIPPINGOPTIONISDEFAULT3=false&L_SHIPPINGOPTIONAMOUNT3=25.10&L_SHIPPINGOPTIONLABEL3=ups_13&L_SHIPPINGOPTIONNAME3=United+Parcel+Service+-+UPS+Next+Day+Air+Saver&L_TAXAMT3=5.19&L_SHIPPINGOPTIONISDEFAULT4=false&L_SHIPPINGOPTIONAMOUNT4=28.21&L_SHIPPINGOPTIONLABEL4=ups_01&L_SHIPPINGOPTIONNAME4=United+Parcel+Service+-+UPS+Express&L_TAXAMT4=5.19&METHOD=CallbackResponse

这是正在发送的 SetExpressCheckout 选项:

[PAYMENTACTION] => Sale
            [AMT] => 39.95
            [CURRENCYCODE] => USD
            [RETURNURL] => {domain url}/paypal/express/return/
            [CANCELURL] => {domain url}/paypal/express/cancel/
            [INVNUM] => 100000009
            [SOLUTIONTYPE] => Sole
            [GIROPAYCANCELURL] => {domain url}/paypal/express/cancel/
            [GIROPAYSUCCESSURL] => {domain url}/checkout/onepage/success/
            [BANKTXNPENDINGURL] => {domain url}/checkout/onepage/success/
            [LOCALECODE] => en_US
            [ITEMAMT] => 39.95
            [TAXAMT] => 0.00
            [SHIPPINGAMT] => 0.00
            [L_NUMBER0] => ABCDEF
            [L_NAME0] => ABCDEF Name
            [L_QTY0] => 1
            [L_AMT0] => 39.95
            [CALLBACK] => {domain url}/paypal/express/shippingOptionsCallback/quote_id/309/
            [CALLBACKTIMEOUT] => 6
            [MAXAMT] => 1038.95
            [L_SHIPPINGOPTIONISDEFAULT0] => true
            [L_SHIPPINGOPTIONAMOUNT0] => 0.00
            [L_SHIPPINGOPTIONLABEL0] => no_rate
            [L_SHIPPINGOPTIONNAME0] => N/A
            [L_TAXAMT0] =>
            [METHOD] => SetExpressCheckout
            [VERSION] => 72.0
            [USER] => ****
            [PWD] => ****
            [SIGNATURE] => ****
            [BUTTONSOURCE] => Varien_Cart_EC_CA

我们无法弄清楚为什么 PayPal 拒绝我们的运输选项?

提前致谢,

4

0 回答 0