gpt4 book ai didi

php - Paypal setExpressCheckout nvp税额错误

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

我正在请求来自 paypal 的 setExpressCheckout 调用,我收到了错误代码 10413。在我从项目总额中扣除税款并将 &PAYMENTREQUEST_0_TAXAMT 添加到请求中之前,它工作得很好。这是请求网址:

https://api.sandbox.paypal.com/nvp?
METHOD=setExpressCheckout&VERSION=87.0
&USER=XXXXXXXXXX
&PWD=XXXXXXXXXX
&SIGNATURE=XXXXXXXXXX
&RETURNURL=XXXXXXXXXX
&CANCELURL=XXXXXXXXXX
&L_PAYMENTREQUEST_0_NAME0=Hy+Guardian+Fly+Rug
&L_PAYMENTREQUEST_0_NUMBER0=HY-FLY
&L_PAYMENTREQUEST_0_DESC0=Size%3A+4+ft+6%2C+Size%3A+4+ft+6%2C+Size%3A+4+ft+6%2C+Size%3A+4+ft+6
&L_PAYMENTREQUEST_0_AMT0=47.00
&L_PAYMENTREQUEST_0_QTY0=1
&PAYMENTREQUEST_0_CURRENCYCODE=GBP
&PAYMENTREQUEST_0_ITEMAMT=37.60
&PAYMENTREQUEST_0_SHIPPINGAMT=11.25
&PAYMENTREQUEST_0_TAXAMT=9.40
&PAYMENTREQUEST_0_AMT=58.25

最佳答案

根据我的意见,

您的总金额似乎与商品总金额不同。

&PAYMENTREQUEST_0_CURRENCYCODE=GBP
&PAYMENTREQUEST_0_ITEMAMT=37.60
&PAYMENTREQUEST_0_SHIPPINGAMT=11.25
&PAYMENTREQUEST_0_TAXAMT=9.40
&PAYMENTREQUEST_0_AMT=58.25

显示 58.25

还有

L_PAYMENTREQUEST_0_AMT0=47.00

显示 47.00

价格不匹配很可能会导致这个问题;)

关于php - Paypal setExpressCheckout nvp税额错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11863563/

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