gpt4 book ai didi

paypal - 小计 (ITEMAMT) 为 $0.00 时出错

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

当我尝试使用带有 0.00 美元小计的 PayPal API 时,我收到错误:

[10413] => The totals of the cart item amounts do not match order amounts.

这是传递给 SetExpressCheckout 的请求数据(个人信息替换为 ...):

    [0] => L_PAYMENTREQUEST_0_AMT0=9.99
[1] => L_PAYMENTREQUEST_0_NAME0=Name
[2] => L_PAYMENTREQUEST_0_QTY0=1
[3] => L_PAYMENTREQUEST_0_NUMBER0=1
[4] => L_PAYMENTREQUEST_0_AMT1=-9.99
[5] => L_PAYMENTREQUEST_0_NAME1=Discount
[6] => L_PAYMENTREQUEST_0_QTY1=1
[7] => L_PAYMENTREQUEST_0_NUMBER1=0
[8] => PAYMENTREQUEST_0_AMT=2.51
[9] => PAYMENTREQUEST_0_ITEMAMT=0.00
[10] => PAYMENTREQUEST_0_SHIPPINGAMT=2.38
[11] => PAYMENTREQUEST_0_TAXAMT=0.13
[12] => PAYMENTREQUEST_0_SHIPTONAME=...
[13] => PAYMENTREQUEST_0_SHIPTOSTREET=...
[14] => PAYMENTREQUEST_0_SHIPTOSTREET2=...
[15] => PAYMENTREQUEST_0_SHIPTOCITY=...
[16] => PAYMENTREQUEST_0_SHIPTOSTATE=...
[17] => PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=...
[18] => PAYMENTREQUEST_0_SHIPTOZIP=...
[19] => PAYMENTREQUEST_0_SHIPTOPHONENUM=...
[20] => CANCELURL=...
[21] => RETURNURL=...
[22] => NOSHIPPING=1
[23] => ALLOWNOTE=0

我怎样才能让它工作?

最佳答案

“PAYMENTREQUEST_0_ITEMAMT=0.00”必须大于零。

https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_nvpapi_developerguide.pdf第 72 页

[....字符长度和限制:值是一个正数,任何货币都不能超过 10,000 美元.....]

关于paypal - 小计 (ITEMAMT) 为 $0.00 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19084018/

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