PayPal Rest API 总和不加起来但加起来的错误
PayPal Rest API error that sum does not add up but it does
我正在使用 PayPal Rest API(Java 的 SDK)并且当我提交执行付款时(即在重定向之前)我收到错误:
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]]
有人知道上面有什么吗?
干杯
汤姆
原因是我的价格低于价格,然后 paypal 将价格解释为每件商品而不是 2 件商品的总和。然后适应工作
"item_list": {
"items": [
{
"name": "PRODUCT_6",
"quantity": "2",
"price": "19.8",
"currency": "EUR"
}
]
}
我正在使用 PayPal Rest API(Java 的 SDK)并且当我提交执行付款时(即在重定向之前)我收到错误:
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]]
有人知道上面有什么吗? 干杯 汤姆
原因是我的价格低于价格,然后 paypal 将价格解释为每件商品而不是 2 件商品的总和。然后适应工作
"item_list": {
"items": [
{
"name": "PRODUCT_6",
"quantity": "2",
"price": "19.8",
"currency": "EUR"
}
]
}