Paypal IPN保持失败 - 购物车项目金额的总数与订单金额不匹配

时间:2016-02-10 06:16:42

标签: paypal woocommerce paypal-sandbox

我们正在使用Woocommerce和Woocommerce订阅。出于某种原因,默认情况下,Woocommerce订阅(参考交易)不会传递或包含Paypal的税额。所以我最终修改了类文件并添加到字段" TAXAMT"在IPN中。

然而,当我这样做时,它现在给我们错误:

[L_ERRORCODE0] => 10413
[L_ERRORCODE1] => 10004
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE1] => Invalid Data
[L_LONGMESSAGE0] => The totals of the cart item amounts do not match order amounts.
[L_LONGMESSAGE1] => This transaction cannot be processed.
[L_SEVERITYCODE0] => Error
[L_SEVERITYCODE1] => Error

任何人都可以帮我确定一下这里丢失了什么或者出了什么问题? 以下是发送给paypal的IPN请求(通过woocommerce paypal日志)

这是一个经常性的产品。该产品售价7.70美元,税收为0.77美元,总计8.47美元

[USER] => ****************
[PWD] => ****************
[SIGNATURE] => ********************************************************
[VERSION] => 124
[METHOD] => DoReferenceTransaction
[REFERENCEID] => B-4CR65046J0487452E
[BUTTONSOURCE] => WooThemes_Cart
[RETURNFMFDETAILS] => 1
[AMT] => 7.70
[CURRENCYCODE] => AUD
[INVNUM] => WC-5184
[PAYMENTACTION] => Sale
[NOTIFYURL] => https://affgo.co/go/wc-api/WC_Gateway_Paypal/
[CUSTOM] => {"order_id":5184,"order_key":"wc_order_56bad2660bf0f"}
[TAXAMT] => 0.77
[ITEMAMT] => 8.47
[L_PAYMENTREQUEST_0_NAME0] => Subscriptions → IMMag Monthly
[L_PAYMENTREQUEST_0_AMT0] => 7.70
[L_PAYMENTREQUEST_0_QTY0] => 1
[PAYMENTREQUEST_0_ITEMAMT] => 7.70
[PAYMENTREQUEST_0_SHIPPINGAMT] => 0.00
[PAYMENTREQUEST_0_TAXAMT] => 0.77

0 个答案:

没有答案