gpt4 book ai didi

php - Paypal 即时更新 API - MAXAMT 错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:20:15 25 4
gpt4 key购买 nike

几小时后,我尝试解决 paypal Instant Update API 中的以下错误

[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 = 商品+运费+保险)

我完全迷路了!感谢您的任何提示!

最佳答案

尝试使用 MAXAMT 而不是 PAYMENTREQUEST_0_MAXAMT。

实际上,PayPal 文档很糟糕,因为相同的内容在 PayPal 文档中的描述完全不同。

关于php - Paypal 即时更新 API - MAXAMT 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9427402/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com