0
因爲小時我嘗試從paypal Instant Update API貝寶即時更新API - MAXAMT錯誤
[L_ERRORCODE0] => 11832
[L_SHORTMESSAGE0] => Maximum amount of order is less than itemized amounts.
[L_LONGMESSAGE0] => Maximum amount of order is less than itemized amounts.
這裏解決以下錯誤是請求:
Method: SetExpressCheckout
Request:
Formatted Request: Array
(
[PAYMENTREQUEST_0_AMT] => 3.00
[PAYMENTREQUEST_0_CURRENCYCODE] => EUR
[PAYMENTREQUEST_0_ITEMAMT] => 1.00
[PAYMENTREQUEST_0_SHIPPINGAMT] => 1.00
[PAYMENTREQUEST_0_NOTIFYURL] => http://www.eee.de/ipn.php
[PAYMENTREQUEST_0_CALLBACK] => http://www.eee.de/ajax.php?action=eee
[PAYMENTREQUEST_0_MAXAMT] => 11.00
[LOGO] => https://www.eee.de/template/img/logo-eee.png
[CANCELURL] => http://eee.de/bestellung.php?paypal_express=cancel
[RETURNURL] => http://eee.de/bestellung.php?paypal_express=return
[L_PAYMENTREQUEST_0_AMT0] => 1.00
[L_PAYMENTREQUEST_0_NAME0] => Item
[L_PAYMENTREQUEST_0_DESC0] => Desc
[L_PAYMENTREQUEST_0_QTY0] => 1
[L_PAYMENTREQUEST_0_NUMBER0] => 123
[CALLBACKVERSION] => 82.0
[CALLBACK] => http://www.eee.de/ajax.php?action=ppe_shipping
[L_SHIPPINGOPTIONISDEFAULT0] => true
[L_SHIPPINGOPTIONNAME0] => UPS0
[L_SHIPPINGOPTIONAMOUNT0] => 1.00
[L_SHIPPINGOPTIONISDEFAULT1] => false
[L_SHIPPINGOPTIONNAME1] => UPS2
[L_SHIPPINGOPTIONAMOUNT1] => 2.00
[L_SHIPPINGOPTIONISDEFAULT2] => false
[L_SHIPPINGOPTIONAMOUNT2] => 3.00
[PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => true
[PAYMENTREQUEST_0_INSURANCEAMT] => 1.00
)
我試過值的每個組合
這是來自Callbackurl的響應:
METHOD=CallbackResponse
&OFFERINSURANCEOPTION=true
&L_SHIPPINGOPTIONNAME0=UPS0
&L_SHIPPINGOPTIONAMOUNT0=1.00
&L_INSURANCEAMOUNT0=1.00
&L_SHIPPINGOPTIONISDEFAULT0=true
&L_SHIPPINGOPTIONNAME1=UPS1
&L_SHIPPINGOPTIONAMOUNT1=2.00
&L_INSURANCEAMOUNT1=1.00
&L_SHIPPINGOPTIONISDEFAULT1=false
&L_SHIPPINGOPTIONNAME2=UPS2
&L_SHIPPINGOPTIONAMOUNT2=3.00
&L_INSURANCEAMOUNT2=1.00
&L_SHIPPINGOPTIONISDEFAULT2=false
據我所知,MAXAMT值是項目+最大運費+稅+因子x的總數,所以爲什麼要這樣比較呢? 11.00 < 3.00(3.00 =商品+運費+保險)
我完全失去了! 感謝您的任何提示!