1
我使用貝寶REST API(SDK的Java),當我提交(重定向之前即)爲excution支付我得到的錯誤:貝寶REST API錯誤和不加了,但它確實
Excetpion e [{
"field": "transactions[0]",
"issue": "Item amount must add up to specified amount subtotal (or total if amount details not specified)"
}]]]
然而,號碼如下(從我的調試日誌副本),並增加了,特別是所有項目的價格(有隻有一個)是完全大部
[[ tranaction t total 24.57]]
[[ tranaction t subtotal 19.8]]
[[ tranaction t tax 3.92]]
[[tranaction t shipping 0.85]]
[[tranaction t item[0] price 19.8]]
任何人的想法怎麼了呢? 乾杯 湯姆
您可以發佈您在請求中設置的完整付款對象嗎?如果你有任何item_list對象設置在那裏,那也會有幫助。 –
是的,需要查看發送給PayPal的實際請求。你可能會發現它裏面的數字並不是你所期望的。除非itemamt + shippingamt + handlingamt + taxamt不等於總金額,否則此錯誤不會返回。 –
@JonathanLeBlanc謝謝。這已經有所幫助。我發現我有一個數量爲2的套餐,paypal根據每件商品來解釋價格,而不是兩件商品合併的價值。所以我只是修改了這個問題,它的工作原理是:-) – Tom